<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BarryODonovan.com &#187; Linux</title>
	<atom:link href="http://www.barryodonovan.com/index.php/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.barryodonovan.com</link>
	<description>Thoughts, ramblings and rants...</description>
	<lastBuildDate>Wed, 18 Jan 2012 10:31:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Asterisk with SS7 via Wanpipe, Dahdi and libss7 – with ISUP SAM support</title>
		<link>http://www.barryodonovan.com/index.php/2012/01/12/asterisk-ss7-sam-support</link>
		<comments>http://www.barryodonovan.com/index.php/2012/01/12/asterisk-ss7-sam-support#comments</comments>
		<pubDate>Thu, 12 Jan 2012 08:05:08 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[My Links]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Recipes]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[asterisk chan_ss7]]></category>
		<category><![CDATA[chan_ss7]]></category>
		<category><![CDATA[dahdi ss7]]></category>
		<category><![CDATA[isup sam]]></category>
		<category><![CDATA[libss7]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[sam]]></category>
		<category><![CDATA[sangoma]]></category>
		<category><![CDATA[sangoma ss7]]></category>
		<category><![CDATA[ss7]]></category>
		<category><![CDATA[ss7 sam]]></category>
		<category><![CDATA[subsequent address message]]></category>
		<category><![CDATA[zaptel ss7]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=385</guid>
		<description><![CDATA[A howto on installing Asterisk with SS7 supported via libss7 on Sangoma hardware along with support for ISUP SAM messages. <a href="http://www.barryodonovan.com/index.php/2012/01/12/asterisk-ss7-sam-support">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After much head banging in bringing up an SS7 link with SAM support, I am documented what worked here.</p>
<p>Firstly, what is <em>SAM support</em>? One end of an SS7 link initialises a new call by sending an <em>Initial Address Message (IAM)</em>. All SS7 software stacks support this and usually it&#8217;s enough. One case where it&#8217;s not enough is when one wants to address a phone number with more than the E.164 standard max length of 16  (usually to pass additional information tacked on the start, end of or even replacing an A or B number). In this scenario, SS7 uses a <em>Subsequent Address Message (SAM)</em> to send the additional digits. Most / all mainstream Asterisk SS7 software stacks do not support this.</p>
<p>The platform and software used is as follows:</p>
<ul>
<li>Ubuntu 10.04 LTS standard CLI install;</li>
<li>dahdi-linux-complete-2.4.0 from the archives (<a title="dahdi-linux-complete-2.4.0" href="http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.4.0+2.4.0.tar.gz">direct link</a>);</li>
<li>a patched version of libss7 supporting SAM via SVN (see below);</li>
<li>a patched version of chan-dahdi via SVN (see below);</li>
<li>Asterisk 1.6.0.28 from the archives (<a href="http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-1.6.0.28.tar.gz">direct link</a>);</li>
<li>Asterisk Addons 1.6.0.6 from the archives (<a href="http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-addons-1.6.0.6.tar.gz">direct link</a>);</li>
<li>Sangoma Wanpipe 3.5.24 (<a href="ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.24.tgz">direct link</a>).</li>
</ul>
<p><strong>Yes, I know some of the above are obsolete. Unfortunately it&#8217;s what&#8217;s required for everything to play nicely together. And, guess what, it works!</strong></p>
<h3>Before You Start</h3>
<p>Ensure you have all the necessary packages for building the packages:</p>
<pre>apt-get install build-essential libnewt-dev subversion    \
   libsqlite3-dev libsnmp-dev bison libtool flex          \
   autoconf2.13 libmysqlclient-dev</pre>
<p>You can assume the working directory is <em>/usr/local/src</em> in the following.</p>
<h3>Installing dahdi-linux-complete</h3>
<p>Download and extract dahdi-linux-complete into /usr/local/src. Then, in the same directory, create some symbolic links:</p>
<pre>ln -s dahdi-linux-complete-2.4.0+2.4.0/linux dahdi-linux
ln -s dahdi-linux-complete-2.4.0+2.4.0/tools dahdi-tools</pre>
<p>Now build dahdi-linux:</p>
<pre>cd dahdi-linux
make
make install</pre>
<p>Now move onto dahdi-tools:</p>
<pre>cd dahdi-tools
./configure
make menuconfig # (and select tools or accept defaults)
make
make install
make config</pre>
<h3>Installing libss7</h3>
<p>There is a patched version of Digium&#8217;s libss7 referred to as <em>Attila&#8217;s libss7 </em>available via SVN. Download and install it:</p>
<pre>svn co https://observer.router.hu/repos_pub/libss7/trunk alibss7
cd alibss7
make
make install</pre>
<h3>Installing Asterisk</h3>
<p>Download and extract the Asterisk 1.6.0.28 package reference above.</p>
<pre>cd asterisk-1.6.0.28</pre>
<p>Now this next bit <strong>is very important and easy to miss</strong> - you also need a patched version of chan_dahdi.c that is compatible with the patched version of libss7. This is also available from SVN:</p>
<pre>svn co https://observer.router.hu/repos_pub/chan_dahdi/trunk achan_dahdi</pre>
<p>Then copy it to your Asterisk source:</p>
<pre>cp achan_dahdi/chan_dahdi.c asterisk-1.6.0.28/channels/chan_dahdi.c</pre>
<p>Now continue with the Asterisk installation:</p>
<pre>./configure
make menuconfig
make
make install
make samples
make config</pre>
<h3>Install Asterisk Addons (optional)</h3>
<p>Download and unpack the above referenced add ons package and build and install:</p>
<pre>cd asterisk-addons-1.6.0.6
./configure
make menuconfig
make
make install
make samples</pre>
<h3>Sangoma Wanpipe</h3>
<p>I&#8217;m using one of Sangoma&#8217;s E1 / T1 interface cards and so I need Wanpipe also. I&#8217;m using version 3.5.24 and preceed as follows after unpacking:</p>
<pre>cd wanpipe-3.5.24./Setup install</pre>
<p>During the install, follow these prompts:</p>
<ul>
<li>select option 2 =&gt; Asterisk/Dahdi Support;</li>
<li>enter path /usr/local/src/dahdi-linux (for Zaptel path prompt);</li>
<li>select defaults for everything else;</li>
<li>you DO want to install start-up scripts;</li>
<li>you DO to configure wanpipe devices for DAHDI;</li>
<li>you DO want to generate /etc/asterisk/chan_dahdi.conf and:
<ul>
<li>select E1 / T1 as appropriate;</li>
<li>select line framing and encoding;</li>
<li>choose clock source;</li>
<li>select <em>Zaptel/Dahdi &#8211; PRI CPE</em> as signalling;</li>
<li>select <em>National ISDN 2</em> as switch type;</li>
<li>do not enable hardware DTMF detection;</li>
<li>use all channels;</li>
<li>select dial plan context as appropriate;</li>
</ul>
</li>
<li>and continue for other ports as necessary;</li>
<li>finally, choose Save cfg: Stop Asterisk &amp; Wanpipe now</li>
<li>you would like wanrouter to start on system boot;</li>
<li>and you would like to execute &#8216;dahdi_cfg&#8217; each time wanrouter starts.</li>
</ul>
<h3>Configuration Steps</h3>
<p>We now need to set various options in Wanpipe, Dahdi and Asterisk for SS7 as it&#8217;s PRI/ISDN by default.</p>
<p>Edit all <em>/etc/wanpipe/wanpipeX.conf</em> files as necessary and change:</p>
<pre> TDMV_DCHAN              = 16</pre>
<p>to</p>
<pre>TDMV_DCHAN              = 0</pre>
<p>Now edit <em>/etc/dahdi/system.conf</em> and change (for example):</p>
<pre>span=1,1,0,ccs,hdb3,crc4
bchan=1-15,17-31
echocanceller=mg2,1-15,17-31
hardhdlc=16</pre>
<p>to</p>
<pre>span=1,1,0,ccs,hdb3,crc4
bchan=2-31
echocanceller=mg2,2-31
mtp2=1</pre>
<p>which of course assumes signalling is on channel 1. If you have voice only links, you might need something like:</p>
<pre>span=1,0,0,ccs,hdb3,crc4bchan=1-31
echocanceller=mg2,2-31</pre>
<p>Lastly, we need to configure Asterisk. Replace lines such as:</p>
<pre>;Sangoma A102 port 1 [slot:4 bus:5 span:1]
switchtype=national
context=from-pstn
group=0
echocancel=yes
signalling=pri_cpe
channel =&gt;1-15,17-31</pre>
<p>with an appropriate configuration. Mine follows below with some edits and <strong>some important notes at the end</strong>:</p>
<pre>;Sangoma A102 port 1 [slot:4 bus:5 span:1]
switchtype=national
context=from-pstn
group=0
echocancel=yes

signaling=ss7
ss7type=itu
ss7_called_nai=dynamic
ss7_calling_nai=dynamic
ss7_internationalprefix=00
ss7_nationalprefix=0
ss7_subscriberprefix=
ss7_unknownprefix=
linkset=1
pointcode=1
adjpointcode=2
defaultdpc=3
networkindicator=national_spare
cicbeginswith=2
channel=2-31
sigchan=1</pre>
<ul>
<li>Set <em>pointcode, adjpointcode and defaultdpc</em> as appropriate;</li>
<li>set <em>networkindicator</em> as appropriate and ensure it matches the other end (you can see what you’re being sent and what you’re sending via <em>ss7 debug</em>;</li>
<li><em>cicsbeginwith</em> is normally 1 but the telco on my end are starting at 2 – this was <em>groping in the dark</em> diagnostics and issues such as no audio, CICs not in service when both sides claim they are, etc may point to misaligned CICs;</li>
<li>make sure you have configured <em>from-pstn</em> or the appropriate context in your<em>extensions.conf</em>.</li>
</ul>
<h3>Confirming Your Link Is Up</h3>
<p>Now start wanrouter <em>(/etc/init.d/wanrouter start)</em>; dahdi <em>(/etc/init.d/dahdi start);</em> and Asterisk <em>(/etc/init.d/asterisk start)</em>. You should see your link come up via logs available with the <em>dmesg</em> command. Launch the Asterisk console and check the status of your links:</p>
<pre>ast-deg1-1*CLI&gt; ss7 show cics 1
  CIC   DPC  DAHDI        STATE   BLOCKING
    2    3      2         Idle
    3    3      3         Idle
    4    3      4         Idle
    5    3      5         Idle
    6    3      6         Idle
    7    3      7         Idle
    8    3      8         Idle
    9    3      9         Idle
   10    3     10         Idle
   11    3     11         Idle
   12    3     12         Idle
   13    3     13         Idle
   14    3     14         Idle
   15    3     15         Idle
   16    3     16         Idle
   17    3     17         Idle
   18    3     18         Idle
   19    3     19         Idle
   20    3     20         Idle
   21    3     21         Idle
   22    3     22         Idle
   23    3     23         Idle
   24    3     24         Idle
   25    3     25         Idle
   26    3     26         Idle
   27    3     27         Idle
   28    3     28         Idle
   29    3     29         Idle
   30    3     30         Idle
   31    3     31         Idle</pre>
<p>You should now be okay to make test calls.</p>
<h3>Do You Need Professional Support / Consultancy?</h3>
<p>While I will try to respond to comments and questions on this blog, I don’t have the time to provide one on one assistance pro-bono. Professional consultancy on Asterisk and SS7 is available worldwide through my company, <a href="http://www.opensolutions.ie/">Open Solutions</a> with <a href="http://www.opensolutions.ie/about-us/contact">contact details here</a>.</p>
<h3>References</h3>
<p>For posterity, I have added Domjan Attila patched libss7 and chan_dahdi to GitHub:</p>
<ul>
<li><a href="https://github.com/barryo/attila-libss7">https://github.com/barryo/attila-libss7</a></li>
<li><a href="https://github.com/barryo/attila-libss7-chan_dahdi">https://github.com/barryo/attila-libss7-chan_dahdi</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2012/01/12/asterisk-ss7-sam-support/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some New Nagios Plugins</title>
		<link>http://www.barryodonovan.com/index.php/2011/10/25/some-new-nagios-plugins</link>
		<comments>http://www.barryodonovan.com/index.php/2011/10/25/some-new-nagios-plugins#comments</comments>
		<pubDate>Tue, 25 Oct 2011 21:04:40 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[nagios-plugins]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[snmp]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=370</guid>
		<description><![CDATA[Over the past ten years I have left many many new and hacked Nagios plugins on many servers around the globe. I&#8217;m now making a concerted effort to find them, clean them, maintain them centrally and release them. To that &#8230; <a href="http://www.barryodonovan.com/index.php/2011/10/25/some-new-nagios-plugins">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Over the past ten years I have left many many new and hacked Nagios plugins on many servers around the globe. I&#8217;m now making a concerted effort to find them, clean them, maintain them centrally and release them.</p>
<p>To that end, I have created a repository on GitHub for the task with a detailed readme file:</p>
<ul>
<li><a href="https://github.com/barryo/nagios-plugins">https://github.com/barryo/nagios-plugins</a></li>
</ul>
<p>As a starting point, there are four plugins available now:</p>
<div>
<ul>
<li>check_chassis_cisco.pl &#8211; a script to poll a Cisco switch or router and check if the device was recently rebooted; its temperature sensors; its fans; its PSU; its CPU utilisation; and its memory usage.</li>
</ul>
<p>&nbsp;</p>
<ul>
<li>check_chassis_server.pl &#8211; a script to poll a Linux / BSD server and check its load average; memory and swap usage; and if it has been recently rebooted.</li>
</ul>
<p>&nbsp;</p>
<ul>
<li>check_portsecurity.pl &#8211; a script to check all ports on a Cisco switch and issues a critical alert if port security has been triggered resulting in a shutdown port on the device.</li>
</ul>
<p>&nbsp;</p>
<ul>
<li>check_portstatus.pl &#8211; a script which will issue warnings if the port status on any Ethernet (by default) port on a Cisco switch has changed within the last hour (by default). I.e. a port up or a port down event.</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2011/10/25/some-new-nagios-plugins/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So I&#8217;ve Made the Switch from SVN to Git&#8230;</title>
		<link>http://www.barryodonovan.com/index.php/2011/08/31/so-ive-made-the-switch-from-svn-to-git</link>
		<comments>http://www.barryodonovan.com/index.php/2011/08/31/so-ive-made-the-switch-from-svn-to-git#comments</comments>
		<pubDate>Wed, 31 Aug 2011 19:21:46 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[inex]]></category>
		<category><![CDATA[ixpmanager]]></category>
		<category><![CDATA[opensolutions]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[vimbadmin]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=361</guid>
		<description><![CDATA[&#8230;and I&#8217;m bloody delighted.  The straw finally came when Nick forced my hand for a project we wanted to release through our work in INEX. I was pushing for Google Code but he had his heart set on GitHub. Now, &#8230; <a href="http://www.barryodonovan.com/index.php/2011/08/31/so-ive-made-the-switch-from-svn-to-git">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>&#8230;and I&#8217;m bloody delighted. </strong></p>
<p>The straw finally came when <a href="http://www.foobar.org/">Nick</a> forced my hand for <a href="https://github.com/inex/IXP-Manager">a project</a> we wanted to release through our work in <a href="https://www.inex.ie/">INEX</a>. I was pushing for Google Code but he had his heart set on GitHub. Now, in fairness, GitHub has some SVN bindings but after some research, I decided to dive right in.</p>
<p>Now, there&#8217;s both a steep learning curve but also a complete change of mindset required from centralised source code management (SCM) with SVN to the distributed model of Git. In the end, most projects will decide on a canonical Git repository anyway which pushes you slightly back towards centralised but there&#8217;s still a world of a difference.</p>
<p>So, what&#8217;s so good about Git? Well, lots. But first and foremost is it&#8217;s exceptionally powerful yet simple branching and merging that <em>just works</em>. And works fast &#8211; remember, with Git everything is local.</p>
<p>One work flow that used to kill me in SVN was that you&#8217;d be implementing feature X but someone needed bug Y fixed immediately involving some of the same code. Getting just the fix for Y in was tough and complicated. And branching in SVN isn&#8217;t quick or simple. In Git, I branch from the main development branch for every new feature, bug fix, etc and then merge what I need between them and back into develop when they&#8217;re ready to be pushed back to the agreed canonical repository.</p>
<p>I&#8217;ve been so impressed with Git that I&#8217;ve moved an open source project we created in <a href="http://www.opensolutions.ie/">Open Solutions</a> over to Github: <a href="https://github.com/opensolutions/ViMbAdmin/wiki">ViMbAdmin</a>. I&#8217;ve also forced the rest of my team in <a href="http://www.opensolutions.ie/">Open Solutions</a> over to Git and migrated a number of customer projects already. <strong>And we&#8217;re reaping productivity rewards!</strong></p>
<p>How we work Git for projects was taken from this excellent post which I would fully recommend: <a href="http://nvie.com/posts/a-successful-git-branching-model/">A successful Git branching model</a>.</p>
<h2>Useful Git Links:</h2>
<ul>
<li>Git for SVN Users: <a href="http://git.or.cz/course/svn.html">http://git.or.cz/course/svn.html</a></li>
<li>Git SVN Comparison: <a href="https://git.wiki.kernel.org/index.php/GitSvnComparison">https://git.wiki.kernel.org/index.php/GitSvnComparison</a></li>
<li>Git&#8217;s own website: <a href="http://git-scm.com/">http://git-scm.com/</a></li>
<li>Git Cheat Sheets: <a href="http://help.github.com/git-cheat-sheets/">http://help.github.com/git-cheat-sheets/</a></li>
<li>The excellent book <em>Version Control with Git</em> (from <a href="http://www.amazon.co.uk/gp/product/0596520123/ref=oss_product">Amazon</a>)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2011/08/31/so-ive-made-the-switch-from-svn-to-git/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Benchmarking the Mikrotik Routerboards RB750 and RB750G</title>
		<link>http://www.barryodonovan.com/index.php/2011/04/11/benchmarking-the-mikrotik-routerboards-rb750-and-rb750g</link>
		<comments>http://www.barryodonovan.com/index.php/2011/04/11/benchmarking-the-mikrotik-routerboards-rb750-and-rb750g#comments</comments>
		<pubDate>Mon, 11 Apr 2011 18:58:01 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[mikrotik]]></category>
		<category><![CDATA[RB1100]]></category>
		<category><![CDATA[rb750]]></category>
		<category><![CDATA[rb750g]]></category>
		<category><![CDATA[routerboard]]></category>
		<category><![CDATA[routeros]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=326</guid>
		<description><![CDATA[Continuing on from ﻿today&#8217;s earlier post, ﻿﻿Benchmarking the Mikrotik Routerboard RB1100, I now present some results for the RB750 and RB750G using the same methodology and platform. The RB750 and the RB750G are two identical looking routers intended for the SOHO environment: &#8230; <a href="http://www.barryodonovan.com/index.php/2011/04/11/benchmarking-the-mikrotik-routerboards-rb750-and-rb750g">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Continuing on from ﻿today&#8217;s earlier post, ﻿﻿<a title="Permalink to Benchmarking the Mikrotik Routerboard RB1100" rel="bookmark" href="http://www.barryodonovan.com/index.php/2011/04/11/benchmarking-the-mikrotik-routerboard-rb1100">Benchmarking the Mikrotik Routerboard RB1100</a>, I now present some results for the RB750 and RB750G using the same methodology and platform.</p>
<p>The RB750 and the RB750G are two identical looking routers intended for the SOHO environment:</p>
<p style="text-align: center;"><img class="aligncenter" title="Routerboard RB750" src="http://routerboard.com/img/pricelist//198_l.png" alt="" width="480" height="419" /></p>
<p>The specifications for the RB750 <em>(with differences for the RB750G in italics and parenthesis)</em> are:</p>
<ul>
<li>five FastEthernet 100Mbps <em>(Gigabit 1Gbps)</em> ports;</li>
<li>32MB DDR SDRAM ;</li>
<li>64MB on board NAND storage;</li>
<li>Atheros AR7240 400MHz <em>(AR7161 680MHz)</em> CPU;</li>
<li>powered by PoE or power jack;</li>
<li>up to 3W <em>(6W) </em>power consumption;</li>
<li>ports 2-5 share dedicated switch chip allowing full 100Mbps <em>(1Gbps)</em> throughput;</li>
<li>all ports can be individually configured.</li>
<li>€31.73 <em>(€54.61)</em> from <a href="http://wirelessconnect.eu/catalog/routers/edge_routers">Wireless Connect</a>.</li>
</ul>
<p>Both routers come with an L4 license of Mikritik&#8217;s RouterOS which is built on the Linux kernel so anyone familiar with Linux networking will get up to speed on these boxes in no time.</p>
<p>As a disclaimer in case it is not clear, all routing tests are done using just two ports &#8211; one for the traffic generator and one for the receiver &#8211; with the device under testing routing the packets between two networks. As such, on the RB750, the maximum throughput we could achieve would be 100Mbps.</p>
<p>I ran tests for plain routing and also, in evaluating it for certain uses, over a VPN tunnel.</p>
<p>All results are presented below. Given the wealth of features, I think these are super boxes at a super price. So far I&#8217;ve put them on the end of an Imagine DSL line providing IPv4 and v6 over PPPoE and the end of a 30Mb UPC line taking its UPC IP via DHCP. They provide firewall, NAT, port forwarding, OpenVPN tunnels, QoS, DHCP, DNS caching and VLANs for phone / VoIP and managment networks.</p>
<p><a href="http://www.barryodonovan.com/wp-content/uploads/2011/04/RB750.jpg"><img class="aligncenter size-full wp-image-328" title="RB750 Benchmarks" src="http://www.barryodonovan.com/wp-content/uploads/2011/04/RB750.jpg" alt="" width="710" height="413" /></a><a href="http://www.barryodonovan.com/wp-content/uploads/2011/04/RB750-OpenVPN.jpg"></a></p>
<p>&nbsp;</p>
<p><a href="http://www.barryodonovan.com/wp-content/uploads/2011/04/RB750-OpenVPN.jpg"><img class="aligncenter size-full wp-image-329" title="RB750-OpenVPN" src="http://www.barryodonovan.com/wp-content/uploads/2011/04/RB750-OpenVPN.jpg" alt="" width="710" height="413" /></a></p>
<p>&nbsp;</p>
<p><img class="aligncenter size-full wp-image-330" title="RB750G" src="http://www.barryodonovan.com/wp-content/uploads/2011/04/RB750G.jpg" alt="" width="710" height="413" /><a href="http://www.barryodonovan.com/wp-content/uploads/2011/04/RB750G-OpenVPN.jpg"></a></p>
<p>&nbsp;</p>
<p><a href="http://www.barryodonovan.com/wp-content/uploads/2011/04/RB750G-OpenVPN.jpg"><img class="aligncenter size-full wp-image-331" title="RB750G-OpenVPN" src="http://www.barryodonovan.com/wp-content/uploads/2011/04/RB750G-OpenVPN.jpg" alt="" width="710" height="413" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2011/04/11/benchmarking-the-mikrotik-routerboards-rb750-and-rb750g/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Benchmarking the Mikrotik Routerboard RB1100</title>
		<link>http://www.barryodonovan.com/index.php/2011/04/11/benchmarking-the-mikrotik-routerboard-rb1100</link>
		<comments>http://www.barryodonovan.com/index.php/2011/04/11/benchmarking-the-mikrotik-routerboard-rb1100#comments</comments>
		<pubDate>Mon, 11 Apr 2011 10:42:46 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[inex]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[mikrotik]]></category>
		<category><![CDATA[RB1100]]></category>
		<category><![CDATA[routerboard]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=316</guid>
		<description><![CDATA[I attended and gave a talk at the recent Irish Wireless Conf &#38; Expo on behalf of INEX. I don&#8217;t get to do much with wireless links and as such I found many of the talks and exhibitors very interesting. &#8230; <a href="http://www.barryodonovan.com/index.php/2011/04/11/benchmarking-the-mikrotik-routerboard-rb1100">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I attended and gave a talk at the recent Irish Wireless Conf &amp; Expo on behalf of INEX. I don&#8217;t get to do much with wireless links and as such I found many of the talks and exhibitors very interesting. One company that had a large presence through both Wireless Connect in Dublin and Irish Wireless in Shannon was <a href="http://www.mikrotik.com/">Mikrotik</a> &#8211; a company manufacturing routers built on Linux and some kit that I had been meaning to look at for some time.</p>
<p>Following the conference I picked up some RB750&#8242;s and RB750G&#8217;s and was very impressed. So much so, that I picked up a <a href="http://www.routerboard.com/index.php?showProduct=98">RB1100</a> also. The <a href="http://www.routerboard.com/index.php?showProduct=98">RB1100</a> specifications include:</p>
<ul>
<li>13 individual 1Gbps ports;</li>
<li>2 x 5 port switch groups;</li>
<li>800MHz Power PC MPC8544E processor;﻿</li>
<li>SODIMM RAM slot with up to 1.5GB RAM;</li>
<li>1 x microSD card slot;</li>
<li>1U rack mount case.</li>
</ul>
<p>I decided to benchmark this to see at just what rate it could route packets.</p>
<h2>Benchmark Methodology and Tests</h2>
<p>I used two PCs running Linux with <a href="http://iperf.sourceforge.net/">iperf</a> to measure TCP throughout with different packet sizes. To establish a baseline, I ran the same tests with the two PCs directly connected (this is the <em>Direct Connection </em>results below). The maximum achievable result with this is 1Gbps.</p>
<p>An example command line for the test which runs for 10 secs by default and for a packet size of 64 bytes is:</p>
<pre>﻿iperf -f m -i 1 -c 10.0.0.1 -l 64</pre>
<p>Then I ran four test sets routing traffic between two networks as follows:</p>
<ol>
<li><em>No c/t, no f/w:</em> connection tracking disabled and firewall set to allow all;</li>
<li><em>No c/t, f/w:</em> connection tracking disabled but with some simple firewall rules;</li>
<li><em>C/t, no f/w:</em> connection tracking enabled but firewall set to allow all;</li>
<li><em>C/t, f/w:</em> connection tracking enabled and stateful firewall rules.</li>
</ol>
<p>In addition, I ran the above four tests with the RB1100 configured as a OpenVPN server:</p>
<pre>﻿/interface ovpn-server serverset auth=sha1,md5 certificate=cert1 \
cipher=blowfish128,aes128,aes192,aes256                          \
default-profile=your_profile enabled=yes                         \
keepalive-timeout=disabled mac-address=FE:50:A7:D5:FE:B7         \
max-mtu=1500 mode=ip netmask=24 port=1194                        \
require-client-certificate=no</pre>
<p>One of the PCs was connected to the RB1100 as a VPN client pushing traffic to the other server on a non-VPN connect with all traffic routed through the RB1100. I also did a baseline test by running the VPN server with the same encryption on one of the PCs with a direct connect to the other and then pushing traffic over the VPN link.</p>
<h2>Results:</h2>
<p>The results can be seen in the following graph:</p>
<p><a href="http://www.barryodonovan.com/wp-content/uploads/2011/04/Untitled-1_htm_40ee7a75.jpg"><img class="aligncenter size-full wp-image-317" title="Benchmark Results" src="http://www.barryodonovan.com/wp-content/uploads/2011/04/Untitled-1_htm_40ee7a75.jpg" alt="" width="710" height="413" /></a></p>
<p>Without connection tracking and firewall, full line rate is achievable for packet sizes of 256bytes and higher &#8211; all in all, an excellent result. That said, no connection tracking and no firewall would be an unusual configuration and with these, the box maxes out at around 525Mbps &#8211; still an excellent result for less than €400.</p>
<p>The VPN tests yielded:</p>
<p><a href="http://www.barryodonovan.com/wp-content/uploads/2011/04/Untitled-1_htm_7bf39067hhhhhhh.jpg"><img class="aligncenter size-full wp-image-324" title="RouterBoard 1100 OpenVPN Throughput Tests" src="http://www.barryodonovan.com/wp-content/uploads/2011/04/Untitled-1_htm_7bf39067hhhhhhh.jpg" alt="" width="738" height="556" /></a>VPN throughput primarily relies on CPU horse power and the PCs used for the <em>Direct Connection</em> baseline test are pretty modern.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2011/04/11/benchmarking-the-mikrotik-routerboard-rb1100/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useful RANCID Debugging Tips</title>
		<link>http://www.barryodonovan.com/index.php/2011/02/05/useful-rancid-debugging-tips</link>
		<comments>http://www.barryodonovan.com/index.php/2011/02/05/useful-rancid-debugging-tips#comments</comments>
		<pubDate>Sat, 05 Feb 2011 16:32:39 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[rancid]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=260</guid>
		<description><![CDATA[I always find it difficult to find a good reference for RANCID debugging strategies and, after spending the afternoon on doing same on one installation, put together my own list. Head over to my article on the company blog for the &#8230; <a href="http://www.barryodonovan.com/index.php/2011/02/05/useful-rancid-debugging-tips">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I always find it difficult to find a good reference for <a href="http://www.shrubbery.net/rancid/">RANCID</a> debugging strategies and, after spending the afternoon on doing same on one installation, put together my own list.</p>
<p>Head over <a href="http://www.opensolutions.ie/blog/2011/02/useful-rancid-debugging-tips/">to my article on the company blog</a> for the tips.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2011/02/05/useful-rancid-debugging-tips/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GIMP: Change Background from Black / White to Transparent</title>
		<link>http://www.barryodonovan.com/index.php/2011/01/19/gimp-change-background-to-transparent</link>
		<comments>http://www.barryodonovan.com/index.php/2011/01/19/gimp-change-background-to-transparent#comments</comments>
		<pubDate>Wed, 19 Jan 2011 14:52:30 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[gimp]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=247</guid>
		<description><![CDATA[This is one that I find myself Googling for regularly but spend time wading through poor results and solutions: http://brainsongimp.blogspot.com/2008/03/black-and-white-jpg-to-transparent-png.html]]></description>
			<content:encoded><![CDATA[<p>This is one that I find myself Googling for regularly but spend time wading through poor results and solutions:</p>
<p><a href="http://brainsongimp.blogspot.com/2008/03/black-and-white-jpg-to-transparent-png.html">http://brainsongimp.blogspot.com/2008/03/black-and-white-jpg-to-transparent-png.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2011/01/19/gimp-change-background-to-transparent/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing a User&#8217;s UID on Apple XServe / Snow Leopard</title>
		<link>http://www.barryodonovan.com/index.php/2010/12/14/changing-a-users-uid-on-apple-xserve-snow-leopard</link>
		<comments>http://www.barryodonovan.com/index.php/2010/12/14/changing-a-users-uid-on-apple-xserve-snow-leopard#comments</comments>
		<pubDate>Tue, 14 Dec 2010 13:42:18 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Recipes]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[uid]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=243</guid>
		<description><![CDATA[Due to exporting NFS file systems from Linux boxes to an XServe, I had need to match the new users&#8217; UID on the XServe to the Linux UIDs. Unfortunately this was not so obvious. There&#8217;s a good how-to here: http://www.inteller.net/notes/change-user-id-on-snow-leopard]]></description>
			<content:encoded><![CDATA[<p>Due to exporting NFS file systems from Linux boxes to an XServe, I had need to match the new users&#8217; UID on the XServe to the Linux UIDs. Unfortunately this was not so obvious.</p>
<p>There&#8217;s a good how-to here:</p>
<p><a href="http://www.inteller.net/notes/change-user-id-on-snow-leopard">http://www.inteller.net/notes/change-user-id-on-snow-leopard</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2010/12/14/changing-a-users-uid-on-apple-xserve-snow-leopard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix for Silly Annoying FreeBSD PHP Ports Errors</title>
		<link>http://www.barryodonovan.com/index.php/2010/11/26/fix-for-silly-annoying-freebsd-php-ports-errors</link>
		<comments>http://www.barryodonovan.com/index.php/2010/11/26/fix-for-silly-annoying-freebsd-php-ports-errors#comments</comments>
		<pubDate>Fri, 26 Nov 2010 14:05:18 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ports]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=240</guid>
		<description><![CDATA[The following occurs quite regularly on FreeBSD: Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. and when fixed, it&#8217;s followed up by: Cannot find autoheader. Please check your autoconf installation and &#8230; <a href="http://www.barryodonovan.com/index.php/2010/11/26/fix-for-silly-annoying-freebsd-php-ports-errors">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The following occurs quite regularly on FreeBSD:</p>
<pre>Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.</pre>
<p>and when fixed, it&#8217;s followed up by:</p>
<pre>Cannot find autoheader. Please check your autoconf installation and the
$PHP_AUTOHEADER environment variable. Then, rerun this script.</pre>
<p>The fix is to set those environment variables <strong><em>(as appropriate for the autoconf and autoheader version numbers &#8211; the below is my example on FreeBSD 8.1)</em></strong>:</p>
<pre>export PHP_AUTOCONF=/usr/local/bin/autoconf-2.68
export PHP_AUTOHEADER=/usr/local/bin/autoheader-2.68</pre>
<p>
in bash of the following in tcsh:
</p>
<pre>
setenv PHP_AUTOCONF autoconf-2.68
setenv PHP_AUTOHEADER autoheader-2.68
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2010/11/26/fix-for-silly-annoying-freebsd-php-ports-errors/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Irish Radio Stations on Linux</title>
		<link>http://www.barryodonovan.com/index.php/2010/10/21/irish-radio-stations-on-linux</link>
		<comments>http://www.barryodonovan.com/index.php/2010/10/21/irish-radio-stations-on-linux#comments</comments>
		<pubDate>Thu, 21 Oct 2010 09:40:14 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Recipes]]></category>
		<category><![CDATA[internet radiio]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[newstalk]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[rte radio]]></category>
		<category><![CDATA[today fm]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=231</guid>
		<description><![CDATA[I&#8217;m a bit of a newstalk junky and like to have the radio on in the back ground. It&#8217;s quite painful jumping between websites and even more painful getting them all to work under Linux so I have some simple &#8230; <a href="http://www.barryodonovan.com/index.php/2010/10/21/irish-radio-stations-on-linux">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a bit of a newstalk junky and like to have the radio on in the back ground. It&#8217;s quite painful jumping between websites and even more painful getting them all to work under Linux so I have some simple Bash aliases for VLC and RTE Radio 1, Today FM and Newstalk:</p>
<pre>alias 2fm='cvlc http://dynamic.rte.ie/av/live/radio/2fm.asx'
alias newstalk='cvlc http://newstalk.fmstreams.com:8008/listen.pls'
alias rteradio1='cvlc http://dynamic.rte.ie/av/live/radio/radio1.asx'
alias todayfm='cvlc http://audiostore.todayfm.com/audio/todayfmIRL_64K.asx'</pre>
<p><strong>UPDATED 2011-02-07:</strong> 2FM added.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2010/10/21/irish-radio-stations-on-linux/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://dynamic.rte.ie/av/live/radio/radio1.asx" length="0" type="video/asf" />
<enclosure url="http://audiostore.todayfm.com/audio/todayfmIRL_64K.asx" length="203" type="video/asf" />
<enclosure url="http://dynamic.rte.ie/av/live/radio/2fm.asx" length="0" type="video/asf" />
		</item>
	</channel>
</rss>

