RouterTech Firmware v2.6 Discussion

All about firmwares for routers. Support for RouterTech firmwares is here too.
Post Reply
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Thu Jul 24, 2008 5:58 pm

Frontier wrote:Is there anything else - besides setting the boot environment variable 'darkstat_enable' to yes - in order to activate DarkStat?

DarkStat is active but it keeps reporting no packets whatsoever :(
The automatic darkstat loading is hardcoded to "ppp0" (same as its status menu in the web interface is hardcoded to "192.168.1.1:667/"). For the more adventurous, you will need to do things manually.

If your external interface is ppp0, then "darkstat_enable yes" (and rebooting the router afterwards) is all you need to do. It will then only start 35 seconds after an external connection has been established. If it is active, then you need to browse a few sites, and then go back and check the stats. (click on "graphs" and "hosts" on the darkstat page).
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
cybor
Novice
Novice
Posts: 29
Joined: Fri Oct 06, 2006 10:49 pm
Location: Parma (Italy)

Post by cybor » Thu Jul 24, 2008 6:05 pm

Kieran wrote:
This issue has now been fixed. Apologies to all for the inconvenience.
I just downloaded the firmware, thanks for the excellent work and sorry for my english.

Bye
Frontier
Novice
Novice
Posts: 33
Joined: Tue Jun 03, 2008 11:38 am
Location: Chios, Greece
Contact:

Post by Frontier » Thu Jul 24, 2008 6:09 pm

mstombs wrote:What type of ISP connection do you have? I see in your env you are using connection1. It certainly worked in testing in the UK with pppoa connection, which uses a wan connection named ppp0, and I think this equates to connection0.
I use a custom PPPoE connection - my ISP is not listed in the predefined list - with the connection name 'Forthnet'.

How can I find out the external name of my connection? Tried the command 'darkstat -i ppp1' but reports that the device is not found.
thechief wrote: The automatic darkstat loading is hardcoded to "ppp0" (same as its status menu in the web interface is hardcoded to "192.168.1.1:667/"). For the more adventurous, you will need to do things manually.

If your external interface is ppp0, then "darkstat_enable yes" (and rebooting the router afterwards) is all you need to do. It will then only start 35 seconds after an external connection has been established. If it is active, then you need to browse a few sites, and then go back and check the stats. (click on "graphs" and "hosts" on the darkstat page).
Thanks for the info, I'll use edit to modify /var/tmp/onconnectWAN for darkstat, as soon as I find out the external interface name my connection uses.

Edit: I've looked in the system log and it seems that the external name for my connection is ppp0

Code: Select all

Jul 23 00:59:10 | Error getting mac from BootLoader enviroment for wlan0
Jul 23 00:59:10 | Using default mac address: xx.xx.xx.xx.xx.xx
Jul 23 00:59:10 | Use BootLoader command:
Jul 23 00:59:10 | 	setenv mac_ap xx.xx.xx.xx.xx.xx
Jul 23 00:59:10 | to set mac address
Jul 23 00:59:10 | Valid Configuration Tree
Jul 23 00:59:11 | NTP Polling Timer for DHCP Started succesfully.
Jul 23 00:59:11 | DSL Polling Timer Started succesfully.
Jul 23 00:59:11 | PSP Boot environment  Modem Modulation Change: 0x10
Jul 23 00:59:11 | Firewall NAT service started
Jul 23 00:59:11 | Bridge Created: br0
Jul 23 00:59:13 | Bridge VLAN0 add eth0
Jul 23 00:59:13 | Bridge VLAN AUTO OFF.
Jul 23 00:59:13 | Bridge Created: br1
Jul 23 00:59:16 | WPA Authenticator Started
Jul 23 00:59:16 | Bridge Created: br2
Jul 23 00:59:18 | Bridge Interface Added: eth0
Jul 23 00:59:21 | AP Driver configuration successful
Jul 23 00:59:27 | AP IS UP
Jul 23 00:59:27 | Bridge Interface Added: wlan0
Jul 23 00:59:28 | DSL Carrier is down
Jul 23 00:59:38 | DSL Carrier is up
Jul 23 00:59:38 | sar read trained mode (5)(ADSL_2plus)
Jul 23 00:59:39 | ---}}} Start of connection delayed for 4 sec
Jul 23 00:59:43 | PPPoE Launch after conn delay timeout ...
Jul 23 00:59:44 | pppd 2.4.1 started by root, uid 0
Jul 23 00:59:44 | Unexpected packet: Ether addr: 00:1a:e2:04:22:24  (PPPOE Discovery)  PPPoE hdr: ver=0x1 type=0x1 code=0x07 sid=0x0000 length=0x0034 (PADO)  PPPoE tag: type=0103 length=0004 (Host Uniq) data (bin):  78 d3 00 10 PPPoE tag: type=0101 length=0000 (Service nam
Jul 23 00:59:44 | Unexpected packet: Ether addr: 00:13:c3:08:f8:3c  (PPPOE Discovery)  PPPoE hdr: ver=0x1 type=0x1 code=0x07 sid=0x0000 length=0x0034 (PADO)  PPPoE tag: type=0103 length=0004 (Host Uniq) data (bin):  78 d3 00 10 PPPoE tag: type=0101 length=0000 (Service nam
Jul 23 00:59:44 | Unexpected packet: Ether addr: 00:1a:e2:04:22:3c  (PPPOE Discovery)  PPPoE hdr: ver=0x1 type=0x1 code=0x07 sid=0x0000 length=0x0034 (PADO)  PPPoE tag: type=0103 length=0004 (Host Uniq) data (bin):  78 d3 00 10 PPPoE tag: type=0101 length=0000 (Service nam
Jul 23 00:59:44 | Start Saving PPPoE Session ID: 0x1f6e 
Jul 23 00:59:44 | Got connection: 1f6e
Jul 23 00:59:44 | Saved Session ID: 0
Jul 23 00:59:44 | Connect: ppp0 {--} nas0
Jul 23 00:59:44 | MRU: 1500
Jul 23 00:59:55 | PPPoE Connect with IP Address xx.xx.xx.xx
Jul 23 00:59:55 | PPPoE Connection Successfully Established 
Jul 23 00:59:55 | PPPoE Connect with Gateway IP Address: 194.219.239.154 
Jul 23 00:59:55 | local  IP address xx.xx.xx.xx
Jul 23 03:59:55 | remote IP address xx.xx.xx.xx
Jul 23 03:59:55 | primary   DNS address xx.xx.xx.xx
Jul 23 03:59:55 | secondary DNS address xx.xx.xx.xx
Jul 23 03:59:57 | DDNS dyndns: Update Successful ip xx.xx.xx.xx from ppp0
Jul 23 03:59:57 | Starting crond. 
Jul 24 18:44:49 | crond (busybox 1.11.1) started, log level 8 
Jul 24 18:44:52 | Starting darkstat (-i ppp0). 
It also shows that the DarkStat service was started (apparently with no errors), I cannot understand why it does not report anything :shock:
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Post by mstombs » Thu Jul 24, 2008 6:17 pm

You are looking for the Linux name, not the friendly UI name

From telnet/ssh console session the command

Code: Select all

ifconfig
will give you a list of all the interfaces, also if you use upnp you can see what interface the core logic uses with

Code: Select all

ps
which shows the activation command. Finally if you are using nat the following command will tell you which interface is used for MASQUERADE

Code: Select all

iptables -L -vn -t nat
[edit] I wonder what nas0 is?
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Thu Jul 24, 2008 6:24 pm

Frontier wrote:It also shows that the DarkStat service was started (apparently with no errors), I cannot understand why it does not report anything :shock:
I assume you already had a WAN connection before darkstat was started. Is this correct?

When you say it does not report anything, did you do any browsing/transfers before checking the stats? If you run "ps", you should see two copies of darkstat running. Are these there?
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
Frontier
Novice
Novice
Posts: 33
Joined: Tue Jun 03, 2008 11:38 am
Location: Chios, Greece
Contact:

Post by Frontier » Thu Jul 24, 2008 6:32 pm

Thanks for the help.

The command ifconfig returned various interfaces (br0,1,2 which are the active ethernet ports, eth0, wlan0, nas0 and ppp0). ppp0 indeed exists and is assigned to the WAN IP address.

Any ideas why darkstat -i ppp0 does not work on my setup?

P.S: I do wonder too what nas0 is...
Last edited by Frontier on Fri Jul 25, 2008 9:05 pm, edited 1 time in total.
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Thu Jul 24, 2008 6:40 pm

I have asked a number of questions. It would be helpful for you to answer those questions before asking new ones.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
Frontier
Novice
Novice
Posts: 33
Joined: Tue Jun 03, 2008 11:38 am
Location: Chios, Greece
Contact:

Post by Frontier » Thu Jul 24, 2008 7:39 pm

thechief wrote:
Frontier wrote:It also shows that the DarkStat service was started (apparently with no errors), I cannot understand why it does not report anything :shock:
I assume you already had a WAN connection before darkstat was started. Is this correct?
Yes.
When you say it does not report anything, did you do any browsing/transfers before checking the stats? If you run "ps", you should see two copies of darkstat running. Are these there?
Yes, two copies of darkstat are running (darkstat -i ppp0). The DSL-G624T has 4 computers connected, one of them is my server (which uploads/downloads all the time) and I am browsing at the same time. Still DarkStat reports 0 packets where I could be transferring massive amounts of data at the same time.

ifconfig returns the following (regarding ppp0)

Code: Select all

ppp0      Link encap:Point-to-Point Protocol
          inet addr:xx.xx.xx.xx  P-t-P:xx.xx.xx.xx  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:465451 errors:0 dropped:0 overruns:0 frame:0
          TX packets:524338 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:369528161 (352.4 MiB)  TX bytes:409062657 (390.1 MiB)
ps returns the following (among others - I had to remove many commands in order to be allowed to post these)

Code: Select all

  PID USER       VSZ STAT COMMAND
  548 root      1780 S    darkstat -i ppp0
  549 root      1696 S    darkstat -i ppp0
  578 root      1100 S    -sh
  580 root      1084 R    ps
I have asked a number of questions. It would be helpful for you to answer those questions before asking new ones.
It seems that we've been posting at the same time, albeit you beat me :)
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Thu Jul 24, 2008 10:57 pm

Well, I think that's all very odd indeed. Unfortunately, it is a problem that I cannot reproduce on any router, so there is not much more assistance I can give. You might want to report this to the author of darkstat.

But first, you might want to try what is suggested on their webpage (i.e., "darkstat -i eth0").

And, please run the following command from a telnet/ssh login prompt, and post the result here:

Code: Select all

echo "lan0:static:settings/ip" | cm_cli_ex
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
Frontier
Novice
Novice
Posts: 33
Joined: Tue Jun 03, 2008 11:38 am
Location: Chios, Greece
Contact:

Post by Frontier » Fri Jul 25, 2008 5:41 am

thechief wrote:Well, I think that's all very odd indeed. Unfortunately, it is a problem that I cannot reproduce on any router, so there is not much more assistance I can give. You might want to report this to the author of darkstat.
Do they actually support running darkstat inside a router?
But first, you might want to try what is suggested on their webpage (i.e., "darkstat -i eth0").
Tried that also, didn't work.
And, please run the following command from a telnet/ssh login prompt, and post the result here:

Code: Select all

echo "lan0:static:settings/ip" | cm_cli_ex
I've issued the command after loggin in to my router (via telnet) and returns 192.168.1.1.

One other thing I've noticed: if I backup my settings, perform a factory reset and then try restoring the config.bin file (via the Upgrade Gateway option), an error appears (Internal Communications Error) but the configuration is actually restored fine. Tried both Firefox 3 and IE 7 withe the same results.

Any ideas what might be wrong?
hyperair
Experienced
Experienced
Posts: 202
Joined: Sun Oct 14, 2007 4:04 pm

Post by hyperair » Fri Jul 25, 2008 6:45 am

Frontier wrote:Do they actually support running darkstat inside a router?
I don't see why not. It said that on any system that can run a PPPoE connection, DarkStat will work. And on my D-Link G604T (flashed using DarkWolf's mod), it worked.
Frontier wrote:Tried that also, didn't work.
I used

Code: Select all

darkstat -i ppp0
I believe that

Code: Select all

darkstat -i eth0
is for monitoring only Ethernet traffic, just as with ppp0, it's only for monitoring incoming and outgoing traffic. Stuff that goes through the default gateway.

Regarding flashing, just use DarkWollf's mod and be done with it. I checked corrupted firmware mode even though my firmware wasn't corrupted. That method works best for me.
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Fri Jul 25, 2008 7:52 am

Frontier wrote:Do they actually support running darkstat inside a router?
A router is simply a specialised linux box, so I don't see the difference. Darkstat has been tested extensively on at least 10 different routers (if not double that number) for an extended period before the release of v2.6. This is the first problem that we've seen with it. I would have to conclude that there is something peculiar about your set up that is causing the problem.

My advice is: start with connecting just your main PC to the router - see how that works - and then add other PCS to the router one by one, and test again at each stage, until you encounter the problem. That may provide some clues.
Frontier wrote:One other thing I've noticed: if I backup my settings, perform a factory reset and then try restoring the config.bin file (via the Upgrade Gateway option), an error appears (Internal Communications Error) but the configuration is actually restored fine. Tried both Firefox 3 and IE 7 withe the same results.

Any ideas what might be wrong?
No idea.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Post by mstombs » Fri Jul 25, 2008 11:17 am

I have been running darkstat on my "ram challenged" Solwise SAR 600E since RT2.6 has been released (using the web downloaded file). I have stopped it and started a few times with different parameters (ie playing with -l) to see if I can reproduce Frontier's issue. The current state is that I have lost the graphs (no bars), but it is still counting and logging something - but I'm not sure it is counting ALL traffic in. Its time for a reboot of this router, but the only time it has lost sync was when I pulled out the telephone line to test something else!

Code: Select all

Firmware version:  	 RouterTech_3.6.0D_20080723_2.60 (20080723003303)
System Uptime: 	36 hours 2 minutes
DSL Status: 	Connected
DSL Speed: 	444/8124kbps
Ethernet: 	Connected
WAN IP Address: 	 ("TalkTalk")
WAN Uptime: 	11hr 6min 48sec ("TalkTalk") 
Mem: 6064K used, 204K free, 0K shrd, 236K buff, 1312K cached

DSL stats:
Transmit
	
Tx PDUs 		266705
Tx Total Bytes 	18668826
Tx Total Error Counts 	0
Receive
	
Rx PDUs 		848575
Rx Total Bytes 	608052253
Rx Total Error Counts 	465
darkstat reports:-

Code: Select all

Running for 11 hrs, 3 mins, 40 secs, since 2008-07-24 23:07:57 UTC+0000.
Total 7,182,739 bytes in 141,479 packets.
Anyway, I'd like to point out that there's no way previous versions of RouterTech (or stock firmware) on this router would be able to run such a large binary, so if even if I give up on the experimental darkstat program for now - I should have a much more robust/responsive router with RT 2.6!

And DSP7.3 works really well on my line...

Code: Select all

Modem Status
	
Connection Status 	  	Connected
Ds Rate (Kbps) 	  	8124
Us Rate (Kbps) 	  	444
DS Margin 	  	15
US Margin 	  	23
DS Line Attenuation 	  	19
US Line Attenuation 	  	10
Trained Modulation 	  	ADSL_2plus
LOS Errors 	  	0
Peak Cell Rate 	  	1047 cells per sec
CRC Rx Fast 	  	47
CRC Tx Fast 	  	0
CRC Rx Interleaved 	  	0
CRC Tx Interleaved 	  	0
Path Mode 	  	Fast Path
Re loading of config files - I have seen that before it is not a recent issue, I assumed it was a Firefox thing - maybe not?

Anyone else who has loaded RT2.6 comment on how it is going?
Frontier
Novice
Novice
Posts: 33
Joined: Tue Jun 03, 2008 11:38 am
Location: Chios, Greece
Contact:

Post by Frontier » Fri Jul 25, 2008 7:43 pm

@thechief: Tried factory reset on the router and re-flashed the unit, just in case I had a bad flash. Then, I've started as you suggested: delete the 'quickstart' connection (otherwise I can't connect to the Internet since my ISP does not support PPPoA), created a new one, disabled wireless (just in case the router does not have enough memory) but still darkstat does not log anything :(

@mstombs: The error regarding restoring configuration is generic; trying to flash the unit using the web method, produces the same error. This worked 100% on RT 2.5 as I've used it extensively for the past month. It's not related to OS or browser, I think it has to do with the way RT deals with the uploaded files.

Could it be that the DSL-G624T runs out of memory while loading darkstat? After darkstat is loaded, I have about 900kB of memory available (I guess it is RAM).

Besides darkstat and the Update Gateway option, everything else works as before, no problems so far :)
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Post by mstombs » Fri Jul 25, 2008 8:03 pm

Frontier wrote:@mstombs: The error regarding restoring configuration is generic; trying to flash the unit using the web method, produces the same error. This worked 100% on RT 2.5 as I've used it extensively for the past month. It's not related to OS or browser, I think it has to do with the way RT deals with the uploaded files.
I have definitely not noticed it on web upgrades, so great observation, I wonder if it is related to speed of flash write - if we can reproduce/fix the config upload, this may help for firmware upgrades on the various versions of 6x4T's? Can you post what the diagnostics identifies your flash chip to be please (new feature in RT2.6, previously users had to open up and identify chip).

Code: Select all

Could it be that the DSL-G624T runs out of memory while loading darkstat? After darkstat is loaded, I have about 900kB of memory available (I guess it is RAM).

That's a very generous amount of memory compared with 8MB ram devices so I think not. It is also not easy to comment on Linux memory usage, the OS uses free ram as cache, so numbers need careful interpretation. I think it must be something to do with your pppoe - most of us use pppoa to test.
Besides darkstat and the Update Gateway option, everything else works as before, no problems so far :)
Thanks, over 250 downloads - there must be more early-adopter users?
Post Reply