Hello Marius,
the version 2.0 is a HUGE step, you should have named it v10.0 H-I-H-I. It takes 37 seconds on my RB2011UAS (mipsbe) with a delay of 20ms.
There is really now advantage any more to run a script on a separate linux machine. The PYTHON script I used before, used almost the same amount of time. Although it used the encap file downloaded via the Portal API so it was up2date to the minute. AFAIK the RIP announcements still have upto 1 hour of delay (if you're unlucky).
Could you move the "Setup parameters" into a separate script (like a config script) which is loaded by ampr_gw script? That way we don't have to edit the script manually everytime you release a new version. :-)
vy 73 de Marc, LX1DUC
On 2016-04-12 20:44, Marius Petrescu wrote:
(Please trim inclusions from previous messages) _______________________________________________ Hello,
I rewritten the Mikrotik router script so it relies less on interactions with RouterOS and processes mainly lists in memory. So the speed significantly increased, an update check without changes on my RB110AHx2 taking 4 seconds. A full table and tunnel setup takes less than 1 min. On a single core ARM, an update check takes less than 10 seconds.
The introduced delay will increase the runtime. Still on the RB1100 it takes only 12 seconds for a check, and some 30 sec on the ARM, while the processor load is quite small (15-20% on the RB1100).
Download links (rsc script): http://www.yo2loj.ro/hamprojects/ampr-gw-2.0.rsc http://yo2tm.ampr.org/hamprojects/ampr-gw-2.0.rsc
Only main script as text file: http://www.yo2loj.ro/hamprojects/ampr-gw-2.0.txt http://yo2tm.ampr.org/hamprojects/ampr-gw-2.0.txt
Have fun, Marius, YO2LOJ
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net