<?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>The Noakes IT and CTI Blog</title>
	<atom:link href="http://www.noakesltd.co.uk/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.noakesltd.co.uk/blog</link>
	<description>Discussions on IT, CTI and telecommunications</description>
	<lastBuildDate>Tue, 15 Feb 2011 20:33:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Safe Fax</title>
		<link>http://www.noakesltd.co.uk/blog/?p=132</link>
		<comments>http://www.noakesltd.co.uk/blog/?p=132#comments</comments>
		<pubDate>Sat, 17 Jul 2010 09:50:32 +0000</pubDate>
		<dc:creator>Simon Millard</dc:creator>
				<category><![CDATA[Noakes Knowledge]]></category>

		<guid isPermaLink="false">http://www.noakesltd.co.uk/blog/?p=132</guid>
		<description><![CDATA[<h2>A brief history</h2>
<a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/faxmachine-300.jpg"><img class="size-full wp-image-206" title="faxmachine-300" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/faxmachine-300.jpg" alt="" width="228" height="171" /></a><p class="wp-caption-text">Image courtesy of stock.xchng</p>
<p>Surprising as it may seem, FAX has been with us for a long time.  It was invented in 1843 by a Scotsman called Alexander Bain – 4 years before Alexander G. Bell was born.  As the first faxes were sent over telegraph lines, they were actually digital; it wasn&#8217;t until the 1980s that they became popular in their analogue form.</p>
<p>FAXing is based on a &#8216;recommendation&#8217; ratified by the ITU (International Telecommunications Union) called T.30.  The fact that it is a recommendation rather ...<p style="font-style: italic"><a href="http://www.noakesltd.co.uk/blog/?p=132">>> Read the full item here <<</a></p>]]></description>
			<content:encoded><![CDATA[<h2>A brief history</h2>
<div id="attachment_206" class="wp-caption alignright" style="width: 238px"><a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/faxmachine-300.jpg"><img class="size-full wp-image-206" title="faxmachine-300" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/faxmachine-300.jpg" alt="" width="228" height="171" /></a><p class="wp-caption-text">Image courtesy of stock.xchng</p></div>
<p>Surprising as it may seem, FAX has been with us for a long time.  It was invented in 1843 by a Scotsman called Alexander Bain – 4 years before Alexander G. Bell was born.  As the first faxes were sent over telegraph lines, they were actually digital; it wasn&#8217;t until the 1980s that they became popular in their analogue form.</p>
<p>FAXing is based on a &#8216;recommendation&#8217; ratified by the ITU (International Telecommunications Union) called T.30.  The fact that it is a recommendation rather than a specification has always been a bit of an issue for fax manufacturers as there is no formal way to say &#8216;this device conforms to the specification&#8217;, instead each device manufacturer has to bend their implementation to work with other devices in the field.</p>
<p>There is a feeling in some quarters that the FAX machine has &#8216;had it&#8217;s day&#8217;, although there is still a huge amount of fax traffic over the planet at any given time today; that coupled with newer protocols like fax-over-IP (T.38) means that fax is going to be around for some time to come.</p>
<p>FAX gained business and residential acceptance mainly with the advent of &#8216;Group 3&#8242; fax, or that mandated by the T.30 recommendation.  Prior to then it was something of a free-for-all in the fax machine market with each vendor having their own implementations and protocols.  There is still an option for vendors to &#8216;duck&#8217; the recommendations by implementing the NSF (Non-standard Facilities) function which pretty much provides a back-door to the protocol.</p>
<p>ITU T.30 is something of an umbrella protocol referencing into several other ITU recommendations to give it the functionality that it requires; mainly these are the V. series modem recommendations and the T.4/6 compression recommendations.</p>
<h2>Take the slow train</h2>
<div id="attachment_208" class="wp-caption alignright" style="width: 248px"><a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/snail-300.jpg"><img class="size-full wp-image-208" title="snail-300" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/snail-300.jpg" alt="" width="238" height="134" /></a><p class="wp-caption-text">Image courtesy of stock.xchng</p></div>
<p>In today&#8217;s terms FAX is outrageously slow; note the following modems (see <em>Noakes Knowledge) </em>for the kind of speeds that FAX is able to run at:</p>
<ul>
<li>V.27(ter)	upto 4,800bps</li>
<li>V.29		upto 9,600bps</li>
<li>V.17		upto 14,400bps</li>
<li>V.34		upto 33,600bps</li>
</ul>
<p>Note that my (extremely cheap) broadband connection currently runs at 8,000,000 bps; so fax is a really slow way of transmitting data.  That said, there is a common held belief that fax is point-to-point and as such has a slightly higher legal standing than Internet data document transfer; a viewpoint becoming increasingly eroded.</p>
<p>T.30 uses a <em>really</em> slow modem, V.21, to get going.  V.21 runs at 300bps and is used to allow the fax machines at each end of the call to work out how fast they may be able to send their pages at. A typical fax call is thus broken into a number of &#8216;phases&#8217; these are:</p>
<ul>
<li>Phase A:
<ul>
<li>Exchange of tones to establish that this is a fax call – these are the annoying beeps that you hear if a fax machine calls you by mistake.</li>
</ul>
</li>
<li>Phase B:
<ul>
<li>An exchange of capabilities – this allows each end to choose the best fit of their abilities</li>
</ul>
</li>
<li>Phase C:
<ul>
<li>Sending the page at the fastest agreed speed</li>
</ul>
</li>
<li>Phase D:
<ul>
<li>Confirmation that the page transmission was OK</li>
</ul>
</li>
<li>Phase E:
<ul>
<li>Release (Hangup) of the call.</li>
</ul>
</li>
</ul>
<p>There are obviously numerous other flows and sub-flows of a fax call depending upon what happens if things go wrong. For instance pages can be re-transmitted, speeds can be changed / renegotiated and so forth. This blog is not the place to show all those flows &#8211; they span several pages of dense A4 diagrams to fully display, so let&#8217;s not do that here.</p>
<h2>Paint me a picture</h2>
<div id="attachment_209" class="wp-caption alignleft" style="width: 250px"><a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/swirl-300.jpg"><img class="size-full wp-image-209" title="swirl-300" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/swirl-300.jpg" alt="" width="240" height="240" /></a><p class="wp-caption-text">Image courtesy of stock.xchng</p></div>
<p>One final question is &#8220;<em>how does a fax machine turn a page into a signal and back into a page again?</em>&#8220;.</p>
<p>The basics are pretty simple, to send a page a fax machine acts as a scanner &#8211; the page is passed over a device that essentially detects black (non-white in reality) and white and turn them into 0&#8217;s and 1&#8217;s.</p>
<p>This binary data is then transmitted over the appropriate modem, described previously, and then recreated at the other end by taking the 0&#8217;s and 1&#8217;s received and using them to print the original data.</p>
<p>The print-out stage used to use thermally sensitive paper and a write-head that would heat-up and cool down very rapidly &#8211; which is why it was never a good idea to leave your fax near a hot radiator! Many fax machines still use this technique, whilst others (most noteably combined printer/scanner/fax machines) use other methods such as inkjet printing.</p>
<p>Obviously, scanning a page of A4 into many hundreds/thousands of lines, each of which contains many hundreds/thousands of 0&#8217;s and 1&#8217;s means there is a lot of data to send. Given the slow transmission speeds we&#8217;ve seen previously this would make fax transmission impracticle, so how is this dilemma resolved? Simple, by compressing the data.</p>
<p>Fax compression uses a technique called Huffman run-length encoding, a nifty little method by which the most commonly occuring lines or sections of lines are reduced to short &#8220;code-words&#8221;. In an average fax, there will be a lot of blank lines, so for instance, lines that are all white are described by a very short code-word of only a few bytes. This method allows huge reductions in the amount of data to be sent.</p>
<p>All faxes use this method of compression, referred to as &#8220;Modified Huffman&#8221; or MH. Many fax machines can also employ additional enhancements, such as &#8220;Modified Read&#8221; or MR which uses MH for the first line and then takes the next line, compares it to the first and only sends the differences. This again improves data compression as many fax lines don&#8217;t vary hugely from line to line. (Remember that in the world of fax, a line isn&#8217;t a line of text, it&#8217;s a line of scan &#8211; which can run into the hundreds per inch). MR only runs over a set number of lines before it again uses MH to take an accurate line &#8220;snapshot&#8221; &#8211; this is because errors that occur on an MR line can propogate easily (as there&#8217;s no baseline between successive MR lines). There is an extension to MR, known as &#8220;Modified-Modified-Read&#8221; or MMR in which the number of lines between the MH snapshots is increased on known-good lines.</p>
<p>So all of the above is what it takes to get a page sent from one place to another -  Alexander Bain would be impressed to see his idea still in use almost 200 years after he first invented it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noakesltd.co.uk/blog/?feed=rss2&amp;p=132</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RTP &#8211; the basics</title>
		<link>http://www.noakesltd.co.uk/blog/?p=143</link>
		<comments>http://www.noakesltd.co.uk/blog/?p=143#comments</comments>
		<pubDate>Sun, 06 Jun 2010 19:00:31 +0000</pubDate>
		<dc:creator>Simon Millard</dc:creator>
				<category><![CDATA[Noakes Knowledge]]></category>

		<guid isPermaLink="false">http://www.noakesltd.co.uk/blog/?p=143</guid>
		<description><![CDATA[<a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/rtp220.jpg"><img class="size-full wp-image-154" title="rtp220" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/rtp220.jpg" alt="RTP" width="220" height="165" /></a><p class="wp-caption-text">Image courtesy of stock.xchng</p>
<p>We saw in <a title="SIP 101" href="http://www.noakesltd.co.uk/blog/?p=125" target="_self">SIP 101</a> how a VoIP call is first setup, maintained and then hungup at the end. As you&#8217;ll recall this is known as the signalling part of a call; fine in principle but useless if you can&#8217;t actually hear the person at the other end. For that we need to get some audio flowing and that&#8217;s where RTP comes in.</p>
<p>RTP stands for &#8216;Real Time Protocol&#8217; and is, as its name suggests, concerned with getting data from one place to another ...<p style="font-style: italic"><a href="http://www.noakesltd.co.uk/blog/?p=143">>> Read the full item here <<</a></p>]]></description>
			<content:encoded><![CDATA[<div id="attachment_154" class="wp-caption alignright" style="width: 230px"><a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/rtp220.jpg"><img class="size-full wp-image-154" title="rtp220" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/rtp220.jpg" alt="RTP" width="220" height="165" /></a><p class="wp-caption-text">Image courtesy of stock.xchng</p></div>
<p>We saw in <a title="SIP 101" href="http://www.noakesltd.co.uk/blog/?p=125" target="_self">SIP 101</a> how a VoIP call is first setup, maintained and then hungup at the end. As you&#8217;ll recall this is known as the signalling part of a call; fine in principle but useless if you can&#8217;t actually hear the person at the other end. For that we need to get some audio flowing and that&#8217;s where RTP comes in.</p>
<p>RTP stands for &#8216;Real Time Protocol&#8217; and is, as its name suggests, concerned with getting data from one place to another in as close to realtime as possible. (For the technically minded out there RTP is laid out by the IETF under RFC3550.)</p>
<p>There are many advantages to using IP as the carrier, or media transport, for a voice or video call: you need only send data when you need to; the infrastructure is plentiful and inexpensive; you are not constrained to using &#8216;plain old telephony&#8217; bandwidth (the &#8217;size of the pipe&#8217;) so can use technologies such as &#8216;high definition voice&#8217;; data and audio can be combined to provide rich communication experiences; the number of devices that can receive the traffic is huge and the list goes on and on!</p>
<div id="attachment_170" class="wp-caption alignleft" style="width: 230px"><a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/rtp2-220.jpg"><img class="size-full wp-image-170" title="rtp2-220" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/rtp2-220.jpg" alt="RTP2-220" width="220" height="197" /></a><p class="wp-caption-text">Image courtesy of stock.xcnhg</p></div>
<p>There is a disadvantage though – IP was not designed to handle &#8216;real time&#8217; communications.  Think of an email; whether it takes 0.001s, 1s, or 20s to deliver the email, the receiver will not really care.  Similarly loading a web page might be annoying if it takes a long time, but no lives will be lost on the back of it!  Audio and video are different though, they have real time constraints, and we will look at some of the impacts of that here.</p>
<p>IP communications involve breaking large lumps of data into smaller chunks known as packets.  If you download a song from your favourite mp3 vendor, you don&#8217;t actually get the whole thing in one go (even though it may feel that way), your computer is sent a very large number of packets which it then combines together to form the whole song file.  As downloading a song does not need &#8216;real time&#8217; capability it is usually done using a system known as TCP (Transmission Control Protocol).  Under TCP, each packet can be checked to make sure that it has arrived, and that it has arrived without being &#8216;damaged&#8217; in transit.  A missed, or damaged packet will be sent again so that a faithful reproduction of the original file can be created by your computer.</p>
<p>In a real time environment there is no point in trying to correct a broken packet, or request the retransmission of a missed packet&#8230;. the moment has passed.  Imagine that I am sending the following in real time (and for the sake of argument, I am going to assume that each word written below can be digitised and sent in a single packet).</p>
<p style="padding-left: 30px;"><em>“The rain in Spain falls mainly on the plain.”</em></p>
<p>If the receiver is listening to this on a phone, and the phone misses packet 4 (Spain), they will hear</p>
<p style="padding-left: 30px;"><em>“The rain in &#8230;&#8230;. falls mainly on the plain.”</em></p>
<p>By the time we realised we&#8217;d missed a word, it&#8217;d be too late for the other end to send it again as we&#8217;d already be into the rest of the sentence. It would be odd if at the end of the audio the word Spain was suddenly inserted, and where would you insert it if the speaker carried on talking?</p>
<p>In reality, actual audio is sent in much small packets than this (typically between 10 and 30 milliseconds of audio per packet) but even so there is still no real point in checking or correcting the packets, so RTP usually uses a much lighter weight underlying protocol known as UDP (User Datagram Protocol) that doesn&#8217;t have any of the data delivery guarantees of TCP but doesn&#8217;t suffer from the potential large scale, round-trip delays either.</p>
<p>This leads to the problem of what do you do with packets that either never arrived, or arrived broken.  The problem is compounded by the fact that IP is a &#8216;best effort&#8217; delivery service.  No packet is ever guaranteed to arrive, and there is no guarantee as to <em>when</em> it will arrive. The fact that a packet sent from London to San Francisco could go the shortest possible route, or via Hong Kong means that there is an inherent variation in the time it takes packets to go from one place to another.  This variation in delay leads to what is called Jitter.</p>
<p>If I send out packets on a heartbeat as follows</p>
<p style="padding-left: 30px;"><em>s)	1&#8230;.2&#8230;.3&#8230;.4&#8230;.5&#8230;.6&#8230;.7&#8230;.8</em></p>
<p>They may be received as</p>
<p style="padding-left: 30px;"><em>r1) 	..1&#8230;.2&#8230;.3&#8230;.4&#8230;.5&#8230;.6&#8230;.7&#8230;.8</em></p>
<p>which has just introduced a short delay, or they may be received as</p>
<p style="padding-left: 30px;"><em>r2)	….1&#8230;&#8230;.23&#8230;&#8230;.4..5&#8230;&#8230;&#8230;&#8230;.678</em></p>
<p>which takes more dealing with or</p>
<p style="padding-left: 30px;"><em>r3)	….1&#8230;&#8230;.23&#8230;&#8230;.4..5&#8230;&#8230;&#8230;&#8230;.786</em></p>
<p>which takes even more dealing with!</p>
<p>The way to address this is by using a &#8216;jitter buffer&#8217;.  A jitter buffer is basically a software mechanism that inserts an artificial delay into the audio playback so that there is some room to breath if packets come in later than expected. In the case of r1) we would need a .. delay in order to be able to play the audio out without problem.  In the case of r3) we would need a …&#8230;&#8230;&#8230;.. delay to be able to play all packets out in sequence.  The most sophisticated jitter buffers are &#8216;adaptive&#8217; which means that they actively change the introduced delay so keep it at the minimum possible.</p>
<p>Two issues come from this.  What happens if our jitter buffer isn&#8217;t long enough to handle the delay, and what is the impact of introducing a delay into a phone call?</p>
<p>Well, if the packet arrived outside the time that our jitter buffer catered for, or not at all, then we need to have a concealment strategy.  Usually this is just to play silence for the period that the packet covered, although there are several more sophisticated techniques which avoid the &#8216;clicking&#8217; that can occur if a lot of packets are missed at once.  Most often this concealment is not noticed by the listener; however, potentially whole words could be lost; a problem if you are trying to tell a sales guy &#8220;I don&#8217;t want to sell at that price&#8221; and the &#8220;don&#8217;t&#8221; goes missing &#8211; expensive!</p>
<p>Delay is another problem as IP is an inherently high-latency (a $5 word for delay) transport method. Delay effects different types of calls in different ways.  On a sales call with a lot of questions being asked and answered, the effect of delay can be severe&#8230; if my call introduces 1s of delay, then it will take 1s before I know that my client has interrupted me, and a further 1s before she knows that I have responded to the interruption.  This is not good.  However, when talking to my mother-in-law I am subjected to one way traffic, and the effects of delay are minimal!</p>
<p>In reality, delays inherent in good, modern, local networks (LANs) are suitably low enough to make VoIP (using RTP) an obvious choice; that&#8217;s why many businesses are moving to replace their conventional TDM based internal PBXs with VoIP based ones. For longer hop networks (WANs and the Internet) VoIP can still be a good and powerful choice &#8211; providing that the infrastructure is good enough to minimise transmission delays and packet loss.</p>
<div id="attachment_183" class="wp-caption alignleft" style="width: 230px"><a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/rtp3-220.jpg"><img class="size-full wp-image-183" title="rtp3-220" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/rtp3-220.jpg" alt="RTP3" width="220" height="150" /></a><p class="wp-caption-text">Image courtesy of stock.xchng</p></div>
<p>So how does all this fit together to make the entity known as RTP? Quite easily as it happens: RTP simply takes the data stream being sent (audio, video etc), breaks it into suitable chunks (to go into the UDP packets for transmission) and adds some extra information such as the type of the data (e.g. the audio format being used), the packet sequence number (so that packets arriving in the wrong order can be rearranged) and some timing information (so that delays can be worked out correctly). It&#8217;s then up to the receiving end to take the packets, reassemble the audio as best it can, account for any delays and play it out so the user can hear it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noakesltd.co.uk/blog/?feed=rss2&amp;p=143</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SIP 101</title>
		<link>http://www.noakesltd.co.uk/blog/?p=125</link>
		<comments>http://www.noakesltd.co.uk/blog/?p=125#comments</comments>
		<pubDate>Sun, 06 Jun 2010 18:26:55 +0000</pubDate>
		<dc:creator>Simon Millard</dc:creator>
				<category><![CDATA[Noakes Knowledge]]></category>

		<guid isPermaLink="false">http://www.noakesltd.co.uk/blog/?p=125</guid>
		<description><![CDATA[<p></p>
<a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/sip1-220.jpg"><img class="size-full wp-image-194" title="sip1-220" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/sip1-220.jpg" alt="SIP1" width="220" height="293" /></a><p class="wp-caption-text">Image courtesy of stock.xchng</p>
<p>When making a phone call two things have to happen: firstly the call has to be placed (one person dials, the other person&#8217;s phone rings, they answer and so on) and secondly the two parties have to be able to have a conversation (audio must flow). In technical terms placing the call is a type of signalling, the actual speaking is a form of media exchange.  This dual technique of signalling and media is used in every phone call around the world and VoIP is no different. ...<p style="font-style: italic"><a href="http://www.noakesltd.co.uk/blog/?p=125">>> Read the full item here <<</a></p>]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		A:link { so-language: zxx } --></p>
<div id="attachment_194" class="wp-caption alignright" style="width: 230px"><a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/sip1-220.jpg"><img class="size-full wp-image-194" title="sip1-220" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/sip1-220.jpg" alt="SIP1" width="220" height="293" /></a><p class="wp-caption-text">Image courtesy of stock.xchng</p></div>
<p>When making a phone call two things have to happen: firstly the call has to be placed (one person dials, the other person&#8217;s phone rings, they answer and so on) and secondly the two parties have to be able to have a conversation (audio must flow). In technical terms placing the call is a type of<strong> signalling</strong>, the actual speaking is a form of <strong>media exchange</strong>.  This dual technique of signalling and media is used in every phone call around the world and VoIP is no different. In VoIP there are a number of ways of signalling a call, SIP happens to be the most widely used and the most likely to become the de-facto standard for VoIP communications.</p>
<p>SIP stands for Session-Initiation-Protocol and is, as you&#8217;ll have guessed a <em>signalling</em> protocol used to set up media sessions such as voice or video calls, but it can, and is, used to set up pretty much any type of collaborative activity.</p>
<p>SIP sends its data as human-readable text (if you&#8217;re an engineer) between one of more parties in an attempt to create a common session for them.  For the purposes of this blog posting, we will look at what happens when a SIP capable phone tries to make a call to another SIP capable phone; it makes no difference if the phone is a desk phone, a softphone running on a PC, or a SIP client running on a mobile device.</p>
<p>SIP borrows heavily from the http protocol (used by you, right now by viewing this web-page) and uses what are called URIs (Uniform Resource Identifiers).  Don&#8217;t let the jargon put you off, URIs are the same things that you see in website addresses and email addresses of the form <em>yourcompany.com</em>, the only difference is the bit at the front &#8211; <strong>http:</strong> for web, <strong>mailto:</strong> for email and <strong>sip:</strong> for, guess what, SIP.</p>
<p>So to contact me at Noakes, you could use <a href="mailto:simon.millard@noakesltd.com">mailto:simon.millard@noakesltd.com</a> for an email, or <a href="sip://simon.millard@noakesltd.co.uk">sip:simon.millard@noakesltd.com</a>. Generally SIP phones will work happily without the sip: at the front (they&#8217;ll add it in for you automatically, in the same way a browser doesn&#8217;t need the http: bit).</p>
<p>SIP sessions follow what is known as the request/response model; it&#8217;s pretty simple, one end will send a request and the other end will send a response. The fine details of what&#8217;s allowed in each part is where the SIP protocol specification comes in; for those who really want to know you can find the gory details in the IETF specification RFC3261; personally I wouldn&#8217;t recommend it, Noakes is here to read such insomniac delights so you don&#8217;t have to.</p>
<div id="attachment_195" class="wp-caption alignleft" style="width: 230px"><a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/sip2-220.jpg"><img class="size-full wp-image-195" title="sip2-220" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/sip2-220.jpg" alt="SIP2" width="220" height="156" /></a><p class="wp-caption-text">Image courtesy of stock.xchng</p></div>
<p>SIP calls are usually started using the INVITE command (it really is the word INVITE, with lots of other associated settings and fields). The calling phone (the one which dialled the &#8216;number&#8217;) will send the INVITE message.  Using the same Internet methods that get your email to my mail server, the INVITE message will get delivered to the called phone.  The called phone then needs to respond to this request by using the same type of responses found in a web transaction.  Usually in response to the INVITE, the called phone will issue a <strong>Ringing</strong> message and will start making a ringing noise (so the called party knows there&#8217;s an incoming call).  When the call is answered the called phone then issues an <strong>OK</strong> message.  If an element in the network decided that the called phone didn&#8217;t exist, the response might be a <strong>Not Found</strong>.</p>
<p style="padding-left: 30px;">(Old timers amongst you might remember the days when this turned up in your browser as a 404 message if you miss typed the address of a website, it&#8217;s no different in SIP, some of the messages, like OK, Ringing, Not Found have the same numeric codes associated with them, 200, 180 and 404 in this case.)</p>
<p>In the event that an <strong>OK</strong> is sent back to the calling phone, an <strong>ACK</strong> message is sent (for Acknowledged) – and the session is up and going. To end the session either party can send a <strong>BYE</strong> message.  All in plain text and nice and easy to understand and troubleshoot. In reality, there&#8217;s a couple more messages that get passed around but the main gist is as above.</p>
<p>Unfortunately the fact that it is plain text, nice and easy to understand and troubleshoot is a bit of a weakness if you don&#8217;t want everyone on the network to know who you are calling – in much the same way that you may not be happy sending your credit card details over the Internet when anyone could be listening.  To get around this problem SIP has been extended to use a protocol called TLS (Transport Layer Security) to provide some protection to your data.  TLS encrypts the SIP traffic so that it is useless to an attacker.  TLS is the same protocol used to secure your credit card transactions over the Internet – you can tell when a page is using TLS as a lock symbol will usually appear somewhere on the browser.</p>
<p>The last thing to mention about SIP, is that it carries another protocol inside called SDP (the Session Description Protocol) which both ends use to determine what is actually going to be carried out by this call; is it a voice call, a video call, or some other transaction.  For a phone call, SDP is used to set up how the voice traffic will be sent from one phone to another.  See Noakes Knowledge on the <a title="RTP" href="http://www.noakesltd.co.uk/blog/?p=143" target="_self">Real Time Protocol</a> if you would like to know more.</p>
<p style="padding-left: 30px;">
<div id="attachment_196" class="wp-caption alignright" style="width: 230px"><a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/sip3-220.jpg"><img class="size-full wp-image-196" title="sip3-220" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/06/sip3-220.jpg" alt="SIP3" width="220" height="173" /></a><p class="wp-caption-text">Image courtesy of stock.xchng</p></div>
<p>One way to think about the difference between SIP and SDP is to imagine you receive an <em>invitation to a party</em> through the post; SIP is the <em>envelope</em> &#8211; it has the recipient&#8217;s address on the front, a return address on the back and possibly a hint of what&#8217;s inside (&#8220;this is not a circular &#8211; important party invitation enclosed&#8221;). The SDP is the <em>invitation</em> itself, saying where the party will be, at what time and what to wear. In reality most people in the industry tend to use the term SIP to include both SIP and SDP in the same context.</p>
<p>So that&#8217;s SIP in a nutshell, a text-based protocol that&#8217;s used to control voice and video calls over an IP network. It can, and is, used for more than just calls but that&#8217;s far and away its biggest use. It&#8217;s not the only protocol for doing this but it&#8217;s the most popular. Also remember, SIP on its own is no good, you need SDP to actually work out what the calls are going to be and RTP to get the content (audio/video etc.) between the parties in real-time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noakesltd.co.uk/blog/?feed=rss2&amp;p=125</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A brief history of VoIP</title>
		<link>http://www.noakesltd.co.uk/blog/?p=68</link>
		<comments>http://www.noakesltd.co.uk/blog/?p=68#comments</comments>
		<pubDate>Thu, 20 May 2010 13:47:59 +0000</pubDate>
		<dc:creator>Mark Fawcett</dc:creator>
				<category><![CDATA[Noakes Knowledge]]></category>

		<guid isPermaLink="false">http://www.noakesltd.co.uk/blog/?p=68</guid>
		<description><![CDATA[<p></p>
<a href="http://www.sxc.hu/profile/konrach"><img class="size-full wp-image-107" title="boxing1-220x207" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/05/boxing1-220x207.jpg" alt="Boxing kid" width="151" height="142" /></a><p class="wp-caption-text">Image courtesy of Konrach</p>
<h2>Old school vs. New kid on the block</h2>
<h3>1. Are you sitting comfortably?</h3>
<p>Our story begins in the halcyon days when telephone calls were carried over classic telephony networks, provided by such gentle behemoths as BT, AT&#38;T and Cable &#38; Wireless. Known generally as TDM-based systems, these networks were dedicated to carry calls and little else. So people knew where they stood; you used your knife and fork to eat, your phone to speak to somebody and your computer to play Zork.</p>
<p>Then one day dear reader, there came ...<p style="font-style: italic"><a href="http://www.noakesltd.co.uk/blog/?p=68">>> Read the full item here <<</a></p>]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<div id="attachment_107" class="wp-caption alignright" style="width: 161px"><a href="http://www.sxc.hu/profile/konrach"><img class="size-full wp-image-107" title="boxing1-220x207" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/05/boxing1-220x207.jpg" alt="Boxing kid" width="151" height="142" /></a><p class="wp-caption-text">Image courtesy of Konrach</p></div>
<h2>Old school vs. New kid on the block</h2>
<h3>1. Are you sitting comfortably?</h3>
<p>Our story begins in the halcyon days when telephone calls were carried over classic telephony networks, provided by such gentle behemoths as BT, AT&amp;T and Cable &amp; Wireless. Known generally as TDM-based systems, these networks were dedicated to carry calls and little else. So people knew where they stood; you used your knife and fork to eat, your phone to speak to somebody and your computer to play Zork.</p>
<p>Then one day dear reader, there came a eureka moment. Someone, who&#8217;s name is lost in the mists of time, realised that computer networks could potentially carry voice calls as well as conventional computer data (a digital voice call is simply a series of 0&#8217;s and 1&#8217;s after all). This new concept was to become known as VoIP, for Voice-over-IP.</p>
<p style="padding-left: 90px;"><em>Time for a pop-quiz: When do you think VoIP first surfaced as we would recognise it today?<br />
</em></p>
<p style="padding-left: 120px;"><em>[a] 1990&#8217;s<br />
[b] 1980&#8217;s<br />
[c] 1970&#8217;s. </em></p>
<p style="padding-left: 90px;"><em>The answer is [c]  – VoIP has been around longer than many of us think.</em></p>
<p>At the time of this Einsteinian revelation, the processing speed of computers and the bandwidth of their networks weren&#8217;t exactly up to the task in hand; in fact they were, how can we say this politely, rubbish as anyone who dipped their toe into this early frigid bathwater discovered. However, time marches ever onward, computer speeds increase, police officers get younger and thus there came a point where it <em>was</em> practical to use computers and their networks to carry phone calls: the age of VoIP had arrived.</p>
<p>As with many new arrivals VoIP&#8217;s birth was a tricky affair; it&#8217;s infancy proving relatively long, painful and fraught with false-starts. Early adoption tended to give VoIP a bad name whilst it was still in nappies (diapers for our American brethren) but it has survived through its growing pains into a headstrong young adult, ready to teach the previous generation of geriatrics a few stiff lessons.</p>
<h3>2. Neither one thing nor the other.</h3>
<p>VoIP can now be found pretty much everywhere within telecommunications; many people use it in some form or another on a daily basis and so the scene is set for a showdown between the old and the new. Let us take a moment therefore to ponder the celebrity death-match that is TDM vs. VoIP, what are the relative strengths and weaknesses of our two gladiatorial combatants?</p>
<ul>
<li>TDM is well established and is still the major method of call interconnections world-wide.</li>
<li>TDM provides guaranteed quality of call and dedicated resources by the use of a circuit/channel based technique, usually based on a 64kbs stream per call (for those technically minded) &#8211; that&#8217;s just enough to give you a &#8220;normal&#8221; quality voice call running in a standard format.</li>
<li>TDM can provide extra services, such as video, but this results in poor quality or the need to combine channels, a process not dissimilar to the extraction of one&#8217;s own wisdom teeth.</li>
<li>TDM requires dedicated infrastructure and maintenance.</li>
</ul>
<ul>
<li> VoIP is a relative upstart in commercial terms and will take time to stabilise and mature.</li>
<li>VoIP requires additional IP network functionality such as quality-of-service and bandwidth dedication to provide reliable, consistent delivery.</li>
<li>VoIP is flexible so services such as video can be provided by simply improving the bandwidth available to the call.</li>
<li>VoIP&#8217;s flexibility means that new services can be introduced relatively easily.</li>
<li>VoIP can be easily secured so calls can be encrypted.</li>
<li>VoIP can easily provide services requiring higher bandwidths such as high-definition audio and video.</li>
<li>VoIP can utilise existing IP infrastucture and can be maintained by IP literate administrators and operational staff.</li>
</ul>
<h3>3. Fetch me my crystal ball Igor</h3>
<p>Where to next oh learned audience? Well, the ivory towered high-court judges have been ruling for some time that TDM is dead and buried but the public jury has kept returning a not-guilty verdict. The truth is that the picture is unclear and future time-scales somewhat uncertain.</p>
<p>VoIP based systems, most notably SIP, are becoming increasingly commonplace within business premises for internal communications thanks to systems such as Asterisk and Cisco&#8217;s Call Manager (the author would like to point out that many other vendor&#8217;s systems are also available at excellent prices). They are found in general businesses from the small to large scale and within specialist communications sectors such as call centres and &#8220;blue-light&#8221; emergency-assistance operations rooms. This all makes good financial sense: you can reduce infrastructure costs and administration overheads by having a common backbone and technologies for all your communications. It also makes computer telephony integration (CTI) far easier.</p>
<p>Long distance domestic calling has moved somewhat to the VoIP camp, with SIP-based, Skype or other systems providing cheap, over-the-Internet calls for keeping in touch with loved ones abroad. Many calling-card platforms and other service providers utilise cheap (if not necessarily good quality) international IP links for carrying their traffic.</p>
<p>Many of the major telcos are considering migrating their core networks (that&#8217;s the really, really, big stuff to me and you) to an IP-based backbone. Several, including BT and AT&amp;T, have either already done this or are in the process of doing so. These types of upgrade are expensive, time consuming and not without risk but it&#8217;s a reasonably safe assumption to think that all the major carriers will go this way eventually. Now is the ideal time to address one of my personal bugbears and I have plenty dear reader, as I&#8217;m sure do you:</p>
<p style="padding-left: 30px;"><em>When such telco migrations to IP are talked about certain people, who should know better, publicly state that a telco&#8217;s move to IP will inherently mean that we, the great unwashed, will automatically and almost immediately move to IP based systems. What&#8217;s more, that we will then communicate with that telco using our normal Internet IP address. Just because a telco has an IP backbone doesn&#8217;t mean you, I or Aunty Hilda will have an upgrade to IP; so why is that?</em></p>
<p style="padding-left: 60px;">A telco&#8217;s IP backbone is a super-fast, highly efficient network, designed to carry all sorts of traffic and telephony protocols over it, it just happens to use IP technology at the bottom. Think of it this way, if your electricity company upgraded their transmission lines would you have to throw out all your appliances &#8211; no of course not. Or to put it another way  my esteemed compadres,  do you really think BT or AT&amp;T would give the likes of me and you a direct IP connection into their core network? Sure they would and I&#8217;ll just go and get the keys to the Crown Jewels from her Maj.</p>
<p style="padding-left: 60px;">The truth is that a telco running an IP based network does not have a direct relevance to systems, such as your telephone, connecting to that system. Telcos will eventually completely move to IP interconnects to the home and businesses but these IP connections will be done on layers running far above the telco&#8217;s IP backbone.<em><br />
</em></p>
<h3>4. Money, mouth, put</h3>
<p>So what do I think? I believe the following to be a fair assessment of VoIP and TDM in the broadest sense. Remember though, this is just my opinion, it&#8217;s not completely comprehensive and there are many more views out there.</p>
<ul>
<li>VoIP is here to stay and will ultimately usurp TDM.</li>
<li>VoIP is currently the only mechanism identified for future telecommunications needs.</li>
<li>VoIP will rapidly become the de-facto standard for businesses&#8217; internal communications.</li>
<li>IP will become the backbone for all major telecommunications providers:
<ul>
<li>They will use SIGTRAN as a means to migrate their existing SS7 signalling to the IP world.</li>
<li>Their IP-backbones will carry many of the standard telephony protocols, probably over a form of MPLS.</li>
<li>An IP based telco does not automatically mean their customers will be using an IP phone.</li>
</ul>
</li>
<li>VoIP to the end users will be predominantly SIP/RTP based.</li>
<li>Business interconnections to telecommunications providers will becoming increasingly based on SIP trunks rather than E1/T1 links.</li>
<li>Eventually all domestic users will migrate to VoIP, when this occurs they will notice no (or little) difference in the way calls are made but will have access to additional features.</li>
<li>Charging for communications will change and may well move to a per-byte basis, rather than a time based mechanism.</li>
<li>People will continue to use the concept of telephone numbers for a long time to come.</li>
<li>TDM will go out with a whimper, not a bang.</li>
</ul>
<p>Until we meet again, take care and remember:</p>
<p style="padding-left: 30px;"><em>&#8220;Only two things are infinite, the universe and human stupidity, and I&#8217;m not sure about the former</em><em>.&#8221;  &#8211; <strong>Albert Einstein</strong></em></p>
<p>Best regards,</p>
<p>Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noakesltd.co.uk/blog/?feed=rss2&amp;p=68</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Noakes Knowledge</title>
		<link>http://www.noakesltd.co.uk/blog/?p=7</link>
		<comments>http://www.noakesltd.co.uk/blog/?p=7#comments</comments>
		<pubDate>Mon, 10 May 2010 19:12:49 +0000</pubDate>
		<dc:creator>Mark Fawcett</dc:creator>
				<category><![CDATA[Noakes Knowledge]]></category>

		<guid isPermaLink="false">http://www.noakesltd.co.uk/blog/?p=7</guid>
		<description><![CDATA[<h3><a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/05/teacher.jpg"><img class="alignleft size-full wp-image-23" title="teacher" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/05/teacher.jpg" alt="teacher" width="155" height="161" /></a>Just enough information to be dangerous&#8230;</h3>
<p style="text-align: justify;"><span style="color: #1377e1;">Noakes Knowledge</span> is a series of free articles on telecommunications and IT technology, intended for everyone whether you be non-technical, semi-technical or a guru in need of a refresher.</p>
<p style="text-align: justify;">At <a href="http://www.noakesltd.co.uk" target="_blank">Noakes</a> we believe that technology should not be a mystery to anyone, so we&#8217;ve decided to remove the smoke and mirrors thus arming you, dear reader, with enough fire-power to be able to say &#8220;I get it&#8220;.</p>
<p style="text-align: justify;">The Noakes Knowledge series is published free and without restriction ...<p style="font-style: italic"><a href="http://www.noakesltd.co.uk/blog/?p=7">>> Read the full item here <<</a></p>]]></description>
			<content:encoded><![CDATA[<h3><em><strong><a href="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/05/teacher.jpg"><img class="alignleft size-full wp-image-23" title="teacher" src="http://www.noakesltd.co.uk/blog/wp-content/uploads/2010/05/teacher.jpg" alt="teacher" width="155" height="161" /></a>Just enough information to be dangerous&#8230;</strong></em></h3>
<p style="text-align: justify;"><strong><span style="color: #1377e1;">Noakes Knowledge</span> is a series of free articles on telecommunications and IT technology, intended for everyone whether you be non-technical, semi-technical or a guru in need of a refresher</strong>.</p>
<p style="text-align: justify;">At <a href="http://www.noakesltd.co.uk" target="_blank">Noakes</a> we believe that technology should not be a mystery to anyone, so we&#8217;ve decided to remove the smoke and mirrors thus arming you, dear reader, with enough fire-power to be able to say &#8220;<strong>I <em>get</em> it</strong>&#8220;.</p>
<p style="text-align: justify;">The Noakes Knowledge series is published free and without restriction on its use and dissemination so use it, quote it, copy from it; all we ask is that you pay us a common courtesy by letting people know that you saw the light with <a href="http://www.noakesltd.co.uk" target="_blank">Noakes</a>.</p>
<p style="text-align: justify;">We will shortly be demystifying <em><strong>VoIP</strong></em>, <em><strong>secure communications</strong></em> and <em><strong>fax</strong></em>, with many more to come. We&#8217;d welcome your input and suggestions on any future topics you&#8217;d like to see covered, simply comment on this blog and we&#8217;ll see it. We&#8217;ll also be announcing any new Noakes Knowledge postings on <a href="http://twitter.com/NoakesLtd" target="_blank">Twitter</a>, so why not follow us there.</p>
<p>Until we meet again, take care and remember:</p>
<p style="text-align: left; padding-left: 30px;"><em>&#8220;The cure for boredom is curiosity. There is no cure for curiosity.&#8221;  &#8211; <strong>Dorothy Parker</strong></em></p>
<p>Best regards,</p>
<p>Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noakesltd.co.uk/blog/?feed=rss2&amp;p=7</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

