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
Dear Marius May you be kind enough to write some explain for "stupids" like me what exactly needed to do in order to operate this script on routers like i have (small home router) where to put the scripts what command to run ? and if you can add some words about it in the wiki in the paragraph of the Mikrotik routers gateway setup it would be great Thanks Forward Ronen - 4Z4ZQ http://www.ronen.org
________________________________________ From: 44Net 44net-bounces+ronenp=hotmail.com@hamradio.ucsd.edu on behalf of Marius Petrescu marius@yo2loj.ro Sent: Tuesday, April 12, 2016 11:44 AM To: AMPRNet working group Subject: [44net] Mikrotik RIPv2 AMPR Gateway Setup Script 2.0
(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.
On Tue, Apr 12, 2016 at 1:04 PM, R P ronenp@hotmail.com wrote:
(Please trim inclusions from previous messages) _______________________________________________ Dear Marius May you be kind enough to write some explain for "stupids" like me what exactly needed to do in order to operate this script on routers like i have (small home router) where to put the scripts what command to run ?
Log in to your router. Paste this:
/tool fetch url=http://www.yo2loj.ro/hamprojects/ampr-gw-2.0.rsc /import ampr-gw-2.0.rsc
I would advise you to read every line of that script and understand it before running it on your router. This copy/paste game will not teach you much.
Tom KD7LXL
I put some instructions on how to get RIP reception and general setup into this text file:
http://www.yo2loj.ro/hamprojects/ampr-gw-README.txt
-----Original Message----- From: R P Sent: Tuesday, April 12, 2016 23:04 To: AMPRNet working group Subject: Re: [44net] Mikrotik RIPv2 AMPR Gateway Setup Script 2.0
(Please trim inclusions from previous messages) _______________________________________________ Dear Marius May you be kind enough to write some explain for "stupids" like me what exactly needed to do in order to operate this script on routers like i have (small home router) where to put the scripts what command to run ? and if you can add some words about it in the wiki in the paragraph of the Mikrotik routers gateway setup it would be great Thanks Forward Ronen - 4Z4ZQ http://www.ronen.org
________________________________________ From: 44Net 44net-bounces+ronenp=hotmail.com@hamradio.ucsd.edu on behalf of Marius Petrescu marius@yo2loj.ro Sent: Tuesday, April 12, 2016 11:44 AM To: AMPRNet working group Subject: [44net] Mikrotik RIPv2 AMPR Gateway Setup Script 2.0
(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.
_________________________________________ 44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
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
Yes, that would be the next step.
Marius, YO2LOJ
-----Original Message----- From: Marc, LX1DUC Sent: Thursday, April 14, 2016 00:44 To: AMPRNet working group Cc: 44Net ; Marius Petrescu Subject: Re: [44net] Mikrotik RIPv2 AMPR Gateway Setup Script 2.0
...
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
_________________________________________
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
About access to the portal data...
It would be nice if the portal data could be available for download as a rsc file in the portal. This would allow to replace the RIP loading with a ':fetch <url>' and an import.
Just a thought.
Marius, YO2LOJ
-----Original Message----- From: Marc, LX1DUC Sent: Thursday, April 14, 2016 00:44 To: AMPRNet working group Cc: 44Net ; Marius Petrescu Subject: Re: [44net] Mikrotik RIPv2 AMPR Gateway Setup Script 2.0
...
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).
...
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
On Thu, 14 Apr 2016, Marius Petrescu wrote:
About access to the portal data...
It would be nice if the portal data could be available for download as a rsc file in the portal. This would allow to replace the RIP loading with a ':fetch <url>' and an import.
More generally, it would be good if it were available in multiple formats to simplify reloading via common platforms. But the big issue with that is you still need to filter out your own gateway routes.
Antonio Querubin e-mail: tony@lavanauts.org xmpp: antonioquerubin@gmail.com
I would say that it could be done without problems. e.g if the provided routes would be using a high distance metric, local ones would take precedence...
-----Original Message----- From: Antonio Querubin Sent: Thursday, April 14, 2016 08:02 To: AMPRNet working group Subject: Re: [44net] Mikrotik RIPv2 AMPR Gateway Setup Script 2.0
(Please trim inclusions from previous messages) _______________________________________________ On Thu, 14 Apr 2016, Marius Petrescu wrote:
About access to the portal data...
It would be nice if the portal data could be available for download as a rsc file in the portal. This would allow to replace the RIP loading with a ':fetch <url>' and an import.
More generally, it would be good if it were available in multiple formats to simplify reloading via common platforms. But the big issue with that is you still need to filter out your own gateway routes.
Antonio Querubin e-mail: tony@lavanauts.org xmpp: antonioquerubin@gmail.com _________________________________________ 44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
On a second thought, a simple plain text file that could be fetched via API holding e.g. <subnet>:<gw>;[<subnet>:<gw>;]... would do the trick.
-----Original Message----- From: Marius Petrescu Sent: Thursday, April 14, 2016 07:55 To: AMPRNet working group Subject: Re: [44net] Mikrotik RIPv2 AMPR Gateway Setup Script 2.0
(Please trim inclusions from previous messages) _______________________________________________ About access to the portal data...
It would be nice if the portal data could be available for download as a rsc file in the portal. This would allow to replace the RIP loading with a ':fetch <url>' and an import.
Just a thought.
Marius, YO2LOJ
-----Original Message----- From: Marc, LX1DUC Sent: Thursday, April 14, 2016 00:44 To: AMPRNet working group Cc: 44Net ; Marius Petrescu Subject: Re: [44net] Mikrotik RIPv2 AMPR Gateway Setup Script 2.0
...
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).
...
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
_________________________________________ 44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net