<?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>Andy Fletcher &#187; Design</title>
	<atom:link href="http://ams1.x31.com/~andy/category/design/feed/" rel="self" type="application/rss+xml" />
	<link>http://ams1.x31.com/~andy</link>
	<description>Telecommunications Consultant</description>
	<lastBuildDate>Mon, 24 Oct 2011 19:45:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>When your ISP blocks incoming SMTP Connections</title>
		<link>http://ams1.x31.com/~andy/2010/01/when-your-isp-blocks-incoming-smtp-connections/</link>
		<comments>http://ams1.x31.com/~andy/2010/01/when-your-isp-blocks-incoming-smtp-connections/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 10:34:09 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[Qatar]]></category>

		<guid isPermaLink="false">http://ams1.x31.com/~andy/?p=2291</guid>
		<description><![CDATA[Things keep changing in Qatar. Just before Christmas the local ISP (QTEL) decided to start blocking inbound port 25 connections to the DSL line I use for work. This posed a problem for me as I run a mail server &#8230; <a href="http://ams1.x31.com/~andy/2010/01/when-your-isp-blocks-incoming-smtp-connections/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Things keep changing in Qatar. Just before Christmas the local ISP (QTEL) decided to start blocking inbound port 25 connections to the DSL line I use for work.  This posed a problem for me as I run a mail server on it using Dynamic DNS for about 80 users. What was particularly irksome was they blocked incoming connections only for locations outside Qatar, not other DSL connections in country.</p>
<p>I don&#8217;t have a problem with ISPs blocking outbound port 25 other than their own mail servers &#8211; that is a sensible anti-spam precaution. However blocking inbound connections can only be used to prevent the running of mail servers and the only reason I can think of for them preventing this is to force people to use their MPLS based Internet leased line which cost over USD 1500/month for 512K last time I looked at the price.</p>
<p>Using <a href="http://nmap.org/">nmap </a> on a server in Amsterdam I quickly discovered it was only port 25 which was blocked. Other ports remained unaffected.</p>
<p>So my problem was to find a way of getting mail into my server using a port other than 25 (SMTP).  Internet mail requires access to port 25 so I had to find another machine to forward mail into my ADSL line in Qatar. Fortunately I have access to such machines running <a href="http://www.debian.org/">Debian </a> and <a href="http://www.postfix.org/">postfix </a>in Amsterdam.</p>
<p>The solution turned out to be surprisingly easy:</p>
<p>1. Arrange for the ADSL link gateway to port forward traffic from a free port (I chose 200) to port 25 on the  internal mail server.  I used <a href="http://www.netfilter.org/">IPTABLES </a>to do this but the same can be done with almost any ADSL gateway &#8211; look for &#8220;Application Sharing&#8221;.   This can be tested by using <a href="http://netcat.sourceforge.net/">netcat </a>(nc) to the gateway from a machine in the outside world (some names obscured):</p>
<p><code> ams1:~# nc www.mydomain.com 200<br />
220 www.mydomain.com ESMTP Postfix (Debian/GNU)<br />
helo www.x31.com<br />
250 www.mydomain.com<br />
quit<br />
221 2.0.0 Bye</code></p>
<p>2. Configure the relay machine (mine is in Amsterdam) to accept mail for the ADSL connected system (my system in Qatar). To do this edit /etc/postfix/main.cf and add the domain to the end of the line (note the use of the comma &#8216;,&#8217;):</p>
<p><code>relay_domains = $mydestination, mydomain.com</code></p>
<p>3. Setup a special delivery transport for mydomain.com. To do this edit /etc/postfix/transport and add the following lines (myddnshost.dyndns.org is the dynamic dns hostname for my system in Qatar and the 200 is the port number I am using):</p>
<p><code>mydomain.com       smtp:[myddnshost.dyndns.org]:200<br />
.mydomain.com      smtp:[myddnshost.dyndns.org]:200<br />
</code></p>
<p>Now rebuild the map file:<br />
<code>$ postmap /etc/postfix/transport<br />
</code></p>
<p>and edit /etc/postfix/main.cf again. Ensure the following line is present:<br />
<code>transport_maps = hash:/etc/postfix/transport</code></p>
<p>Finally restart postfix:<br />
<code>$ /etc/init.d/postfix restart</code></p>
<p>4. Now update your DNS and point the MX record at the relay machine. Wait for things to settle down (can take a few hours) and your mail will start to be delivered into your ADSL connected server.</p>
<p>I run Debian Etch and Lenny systems with a mostly standard postfix configuration which uses hash tables. If your system is different then you may need to specify a different format. The /etc/postfix/transport file is extremely powerful and I recommend you look at &#8220;man transport&#8221; before making changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://ams1.x31.com/~andy/2010/01/when-your-isp-blocks-incoming-smtp-connections/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>RF line of sight propagation</title>
		<link>http://ams1.x31.com/~andy/2009/04/rf-line-of-sight-propagation/</link>
		<comments>http://ams1.x31.com/~andy/2009/04/rf-line-of-sight-propagation/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 19:07:56 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Wireless]]></category>
		<category><![CDATA[Antennas]]></category>

		<guid isPermaLink="false">http://ams1.x31.com/~andy/?p=1441</guid>
		<description><![CDATA[Introduction For communications systems to operate reliably a good signal needs to be received. Too weak a signal will cause loss of data and too strong a signal can result in overloading of the receiver or interference to other communications &#8230; <a href="http://ams1.x31.com/~andy/2009/04/rf-line-of-sight-propagation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>For communications systems to operate reliably a good signal needs to be received. Too weak a signal will cause loss of data and too strong a signal can result in overloading of the receiver or interference to other communications systems. Environmental factors will (normally) reduce the received signal below the level resulting from a simple line of sight computation. Note that this posting only considers propagation in the far field – antennas more than a few wavelengths apart and in an uncluttered environment.</p>
<h2>The transmitting isotropic antenna</h2>
<p>This is an antenna which radiates equally in all directions, in effect distributing the power over the surface of a sphere with the antenna at the centre. This is an important definition because all antennas are characterised in comparison with an isotropic antenna.  A high gain antenna concentrates the power in a preferred direction at the expense of power being radiated in other directions.  A useful analogy is squeezing a balloon where it shrinks where it is squeezed and pops out further in other areas.</p>
<p>Antenna gains are usually expressed in dB referenced to an isotropic antenna and these figures are denoted as dBi (dB relative to an isotropic antenna). An example of this is a dipole antenna which shows a gain of 2.2dBi in its preferred radiation directions.</p>
<p>An isotropic antenna is defined as being 100% efficient. This means all the power which is put into the antenna is transmitted onto its coverage area. This is known as radiation efficiency and all antennas are less than 100% efficient. Factors which can impact radiation efficiency include the impedance matching to the signal source (mismatches result in power being reflected to the source) and resistive losses of the surfaces of the antenna.</p>
<p>As the surface area of a sphere is equal to</p>
<p>[pmath]Area = 4 pi r^2[/pmath]</p>
<p>the power density at a distance r from the antenna can be computed as</p>
<p>[pmath]Pd = Pt / {4 pi r^2  }[/pmath] where Pt is the transmitted power.</p>
<p>From this it can be seen that the power density reduces by the square of the distance.</p>
<h2>The receiving isotropic antenna.</h2>
<p>Antennas receive as well as transmit and the amount of power they receive is a function of the area of the signal they intercept. The effective area of an isotropic antenna is defined as </p>
<p>[pmath]Ea = Lambda^2 / {4 pi}[/pmath] where &Lambda; is the wavelength of the signal being received. </p>
<p>Isotropic antennas receive equally well in all directions and are defined as being 100% efficient. Real world antennas have efficiency losses and can increase their sensitivity in some directions at the expense of others. This figure is exactly the same as the transmit case as antennas are reciprocal in nature.</p>
<h2>Path loss</h2>
<p>Knowing the power density of a transmitting isotropic antenna and the effective area of a receiving antenna it is possible to work out the power transferred by two antennas.</p>
<p>[pmath]Pr = Pt (Lambda^2 / {4 pi} )  ( 1 / { 4 pi r^2 }) = Lambda^2 /  { 16 pi^2  r^2 }[/pmath]</p>
<p>and the path loss is</p>
<p>[pmath]Path Loss = Pt / Pr = {16 pi^2 r^2 } / Lambda^2[/pmath]</p>
<p>As wavelength isn&#8217;t normally used we convert to frequency</p>
<p>[pmath]Path Loss = {16 pi^2 r^2 f^2} / {c^2}[/pmath] where c is the speed of light (300,000,000 m/s)</p>
<p>[pmath]Path Loss = ({{4 pi} / c} r f )^2[/pmath]</p>
<p>Converting everything to dB and separating the terms we end up with</p>
<p>[pmath]Path Loss dB = 20 log10({{4 pi} / c} r f )[/pmath]</p>
<p>[pmath]Path Loss dB = 20 log10({{4 pi} / c}) + 20 log10(r) + 20 log10(f)[/pmath]</p>
<p>[pmath]Path Loss dB =  -138.02 + 20 log10(r) + 20 log10(f)[/pmath]</p>
<p>As antenna gains are expressed in dBi and we can easily add the effect of them to the pathloss computation:</p>
<p>[pmath]Path Loss dB =  &#8211; Gtx &#8211; Grx -138.02 + 20 log10(r) + 20 log10(f)[/pmath]</p>
<p>This is a useful result as it allows us to quickly work out the loss between two antennas under optimal conditions. If you only have the natural logs rather than base 10 then you can convert the base using the substitution below:</p>
<p>[pmath]log10(x) = {loge(x)} / {loge(10)}[/pmath]</p>
]]></content:encoded>
			<wfw:commentRss>http://ams1.x31.com/~andy/2009/04/rf-line-of-sight-propagation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Driving antennas from two sources.</title>
		<link>http://ams1.x31.com/~andy/2009/03/driving-antennas-from-two-sources/</link>
		<comments>http://ams1.x31.com/~andy/2009/03/driving-antennas-from-two-sources/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 00:24:48 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Wireless]]></category>
		<category><![CDATA[Antennas]]></category>

		<guid isPermaLink="false">http://ams1.x31.com/~andy/?p=1201</guid>
		<description><![CDATA[I came across an interesting design problem recently in an indoor PMR distribution system. The system comprised both radiating feeder and antennas all driven from two RF over fibre amplifiers in different locations.  The two amplifiers are used for resilience &#8230; <a href="http://ams1.x31.com/~andy/2009/03/driving-antennas-from-two-sources/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I came across an interesting design problem recently in an indoor PMR distribution system. The system comprised both radiating feeder and antennas all driven from two RF over fibre amplifiers in different locations.  The two amplifiers are used for resilience and drive the feeders from each end.</p>
<p>Because the antennas are receiving signals on the same frequency from two sources there exists a possibility of signal cancellation at certain frequencies. This would result in antennas failing to transmit (and receive) in certain areas as the signals cancelled at specific frequencies. The cancellation would depend on the relative distances from the amplifiers and the velocity factors of the intervening feeders.  The phasing of the signals would change with time and temperature making it near to impossible to predict the behaviour.</p>
<p>The solution was simple. Ensure that the signals at the antennas coming from the two sources are at different levels and therefore cannot completely cancel. This limits the variation in antenna gain across the band to a few dB. In this case a minimum distribution network design difference in power level of 6dB was adopted which results in a gain variation of 2.5dB across the band.</p>
<p>If the RF over fibre amplifiers are matched to within 2dB then this ripple could be about 4dB if the distribution network is set to 6dB difference. Obviously the coverage contour from the antenna would have to be at least at least 4dB above that level required for satisfactory performance to ensure that there are no dead spots.</p>
<p>The table below shows the worst case ripple resulting from the antenna being driven from two sources.</p>
<table border="0" cellspacing="0" frame="void" rules="none">
<colgroup>
<col width="115"></col>
<col width="128"></col>
<col width="117"></col>
<col width="86"></col>
</colgroup>
<tbody>
<tr>
<td style="border: 1px solid #000000;" width="115" height="34" align="center" valign="top" bgcolor="#999999"><strong>Antenna power difference (dB)</strong></td>
<td style="border: 1px solid #000000;" width="128" align="center" valign="top" bgcolor="#999999"><strong>Min signal (dB)</strong></td>
<td style="border: 1px solid #000000;" width="117" align="center" valign="top" bgcolor="#999999"><strong>Max signal (dB)</strong></td>
<td style="border: 1px solid #000000; text-align: center;" width="86" valign="top" bgcolor="#999999"><strong> Ripple (dB)</strong></td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">0</td>
<td style="border: 1px solid #000000;" align="center">-infinite</td>
<td style="border: 1px solid #000000;" align="center">3.01</td>
<td style="border: 1px solid #000000;" align="center">infinite</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">1</td>
<td style="border: 1px solid #000000;" align="center">-6.87</td>
<td style="border: 1px solid #000000;" align="center">2.54</td>
<td style="border: 1px solid #000000;" align="center">9.41</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">2</td>
<td style="border: 1px solid #000000;" align="center">-4.33</td>
<td style="border: 1px solid #000000;" align="center">2.12</td>
<td style="border: 1px solid #000000;" align="center">6.45</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">3</td>
<td style="border: 1px solid #000000;" align="center">-3.02</td>
<td style="border: 1px solid #000000;" align="center">1.76</td>
<td style="border: 1px solid #000000;" align="center">4.78</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">4</td>
<td style="border: 1px solid #000000;" align="center">-2.2</td>
<td style="border: 1px solid #000000;" align="center">1.46</td>
<td style="border: 1px solid #000000;" align="center">3.66</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">5</td>
<td style="border: 1px solid #000000;" align="center">-1.65</td>
<td style="border: 1px solid #000000;" align="center">1.19</td>
<td style="border: 1px solid #000000;" align="center">2.84</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">6</td>
<td style="border: 1px solid #000000;" align="center">-1.26</td>
<td style="border: 1px solid #000000;" align="center">0.97</td>
<td style="border: 1px solid #000000;" align="center">2.23</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">7</td>
<td style="border: 1px solid #000000;" align="center">-0.97</td>
<td style="border: 1px solid #000000;" align="center">0.79</td>
<td style="border: 1px solid #000000;" align="center">1.76</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">8</td>
<td style="border: 1px solid #000000;" align="center">-0.75</td>
<td style="border: 1px solid #000000;" align="center">0.64</td>
<td style="border: 1px solid #000000;" align="center">1.39</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">9</td>
<td style="border: 1px solid #000000;" align="center">-0.58</td>
<td style="border: 1px solid #000000;" align="center">0.51</td>
<td style="border: 1px solid #000000;" align="center">1.1</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">10</td>
<td style="border: 1px solid #000000;" align="center">-0.46</td>
<td style="border: 1px solid #000000;" align="center">0.41</td>
<td style="border: 1px solid #000000;" align="center">0.87</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">11</td>
<td style="border: 1px solid #000000;" align="center">-0.36</td>
<td style="border: 1px solid #000000;" align="center">0.33</td>
<td style="border: 1px solid #000000;" align="center">0.69</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">12</td>
<td style="border: 1px solid #000000;" align="center">-0.28</td>
<td style="border: 1px solid #000000;" align="center">0.27</td>
<td style="border: 1px solid #000000;" align="center">0.55</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">13</td>
<td style="border: 1px solid #000000;" align="center">-0.22</td>
<td style="border: 1px solid #000000;" align="center">0.21</td>
<td style="border: 1px solid #000000;" align="center">0.44</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">14</td>
<td style="border: 1px solid #000000;" align="center">-0.18</td>
<td style="border: 1px solid #000000;" align="center">0.17</td>
<td style="border: 1px solid #000000;" align="center">0.35</td>
</tr>
<tr>
<td style="border: 1px solid #000000;" height="18" align="center">15</td>
<td style="border: 1px solid #000000;" align="center">-0.14</td>
<td style="border: 1px solid #000000;" align="center">0.14</td>
<td style="border: 1px solid #000000;" align="center">0.27</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://ams1.x31.com/~andy/2009/03/driving-antennas-from-two-sources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

