<?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 Nir Simionovich blog &#187; Amazon EC2</title>
	<atom:link href="http://www.simionovich.com/category/amazon-ec2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simionovich.com</link>
	<description>The rants and raves of a technogeek</description>
	<lastBuildDate>Sat, 03 Sep 2011 19:26:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Call Analytics &#8211; Beyond CDR analysis &#8211; Part I</title>
		<link>http://www.simionovich.com/2010/02/22/call-analytics-beyond-cdr-analysis-part-i/</link>
		<comments>http://www.simionovich.com/2010/02/22/call-analytics-beyond-cdr-analysis-part-i/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:03:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AGI]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[technnology]]></category>
		<category><![CDATA[Application programming interface]]></category>
		<category><![CDATA[Israel]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[Real-time computing]]></category>
		<category><![CDATA[Rosetta Stone]]></category>
		<category><![CDATA[Site Management]]></category>
		<category><![CDATA[Statistics]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=388</guid>
		<description><![CDATA["Oh, just get me the CDR's and I'll take it from there" - how many times have I heard these words before? I can't even imagine the number of times in the past 15 years of IT/Telecom's work that I've done and in the last 8 years of Asterisk in particular - when it comes to billing and fraud management, it would appear that the CDR's are the Rosetta Stone of the industry.  ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2010%2F02%2F22%2Fcall-analytics-beyond-cdr-analysis-part-i%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2010%2F02%2F22%2Fcall-analytics-beyond-cdr-analysis-part-i%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>&#8220;Oh, just get me the <a class="zem_slink" title="Call detail record" rel="wikipedia" href="http://en.wikipedia.org/wiki/Call_detail_record">CDR</a>&#8216;s and I&#8217;ll take it from there&#8221; &#8211; how many times have I heard these words before? I can&#8217;t even imagine the number of times in the past 15 years of IT/Telecom&#8217;s work that I&#8217;ve done and in the last 8 years of <a class="zem_slink" title="Asterisk (PBX)" rel="homepage" href="http://www.asterisk.org/">Asterisk</a> in particular &#8211; when it comes to billing and fraud management, it would appear that the CDR&#8217;s are the <a class="zem_slink" title="Rosetta Stone (software)" rel="homepage" href="http://www.rosettastone.com">Rosetta Stone</a> of the industry.</p>
<p>Over the past 6 months, several of my friends and I had been asking ourselves this question: &#8220;Is there more to billing, fraud management and profit leakage? does it really all begins and ends with the CDRs?&#8221; &#8211; so, here we were, a group of 3 engineers dealing with telecom system and billing systems &#8211; we knew that the answer is a definite YES, however, how come most companies and system aren&#8217;t even aware of this, in such a way that causes them to leak telecom profits and waste their hard earned profit margins on simple accidental mis-interpretation of CDR records.</p>
<p>So, we&#8217;ve decided to sit down and start analyzing calls in <a class="zem_slink" title="Real-time computing" rel="wikipedia" href="http://en.wikipedia.org/wiki/Real-time_computing">real-time</a>, trying to evaluate not only the CDR record that is received upon the completion of the call &#8211; but also understand the traversal path of the call, analyzing it in real time and evaluating it profit leakage potential. At the mean time, we&#8217;re concentrating our work on Asterisk, as it is the simplest for us to implement &#8211; however, we&#8217;re not focusing it only on that &#8211; we&#8217;ll looking at adding it to FreeSwitch, Yate, OpenSer/Kamailio, OpenSIPS and the various varients.</p>
<p>So, what have we done so far? well, one thing we never really had with any of the existing systems was a clear view of what&#8217;s going on &#8220;right-now&#8221; on our systems, so we said: &#8220;it would really be great if we could know how many call hits we&#8217;ve received during the past 15, 30, 45 or 60 minutes&#8221; &#8211; so here is what we made:</p>
<p><a href="http://www.simionovich.com/wp-content/uploads/2010/02/humbug3.jpg"><img class="aligncenter size-full wp-image-389" title="Inbound call statistics for 30 minutes" src="http://www.simionovich.com/wp-content/uploads/2010/02/humbug3.jpg" alt="Inbound call statistics for 30 minutes" width="690" height="387" /></a>The above image shows our top 10 inbound DID numbers, as you can see these are in the 972 and 447 country codes (yes, we work mainly in <a class="zem_slink" title="Israel" rel="geolocation" href="http://maps.google.com/maps?ll=31.7833333333,35.2166666667&amp;spn=1.0,1.0&amp;q=31.7833333333,35.2166666667%20%28Israel%29&amp;t=h">Israel</a> and the <a class="zem_slink" title="United Kingdom" rel="geolocation" href="http://maps.google.com/maps?ll=51.5,-0.116666666667&amp;spn=10.0,10.0&amp;q=51.5,-0.116666666667%20%28United%20Kingdom%29&amp;t=h">UK</a>). At the backend, our servers are analyzing the data in real time, generating an active alert in the case a DID number&#8217;s <a class="zem_slink" title="Statistics" rel="wikipedia" href="http://en.wikipedia.org/wiki/Statistics">statistics</a> change in a somewhat drastic change, thus, establish a traffic anomaly. Another thing that interested us was our usage across multiple servers, which we are exhibiting in the below graph:</p>
<p><a href="http://www.simionovich.com/wp-content/uploads/2010/02/humbug1.jpg"><img class="aligncenter size-full wp-image-390" title="Traffic by server spread" src="http://www.simionovich.com/wp-content/uploads/2010/02/humbug1.jpg" alt="Traffic by server spread" width="800" height="481" /></a></p>
<p>Now, as you can see, the top graph shows a discrete anomaly:</p>
<p><a href="http://www.simionovich.com/wp-content/uploads/2010/02/humbug21.jpg"><img class="aligncenter size-full wp-image-392" title="Discrete traffic anomaly" src="http://www.simionovich.com/wp-content/uploads/2010/02/humbug21.jpg" alt="Discrete traffic anomaly" width="409" height="186" /></a>This anomaly indicates something went wrong on all our servers between 00:45 and 1:15, which gives us a fairly discrete period of time to seek for a problem in the system. What happened was that one of the guys updated a portion of the data traversal <a class="zem_slink" title="Application programming interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Application_programming_interface">API</a> &#8211; basically deleting it <img src='http://www.simionovich.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  [we resumed full work after about 40 minutes].</p>
<p>So, where is it all going to? well simple, a new <a class="zem_slink" title="Open Source" rel="wikinvest" href="http://www.wikinvest.com/concept/Open_Source">Open Source</a> based service that we&#8217;ll be launching within a few months from now. Our intention is to provide a means for simple, straight <a class="zem_slink" title="Forward (association football)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Forward_%28association_football%29">forward</a>, highly reliable, call analytics, fraud management and profit leakage analysis service. A service which is based upon a simple to use API on one hand and Open Source based data gathering agents. Our belief is that by analyzing large amounts of data, from multiple sources around the world, we&#8217;ll be able to ascertain the fingerprint of a telecom bound attack &#8211; being able to alert the respective users of the service and maybe in the later future, also provide a means to block the attack as it advances across the world.</p>
<p>I&#8217;ll be updating about our advancement as we go along, but for the time being, this is something I felt would interest you.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/48389df4-cfc0-4a29-999f-bd64ebfa9a06/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=48389df4-cfc0-4a29-999f-bd64ebfa9a06" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2010/02/22/call-analytics-beyond-cdr-analysis-part-i/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Astricon 2009 – Glendale, AZ – Part II</title>
		<link>http://www.simionovich.com/2009/10/15/astricon-2009-%e2%80%93-glendale-az-%e2%80%93-part-ii/</link>
		<comments>http://www.simionovich.com/2009/10/15/astricon-2009-%e2%80%93-glendale-az-%e2%80%93-part-ii/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 00:18:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AGI]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[technnology]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[digium]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[GreenfieldTech]]></category>
		<category><![CDATA[Innovation Award]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMWARE]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=342</guid>
		<description><![CDATA[Ok, it's day 1 (or actually day 2) for AstriCon 2009 - and here's my report for the day. ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F10%2F15%2Fastricon-2009-%25e2%2580%2593-glendale-az-%25e2%2580%2593-part-ii%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F10%2F15%2Fastricon-2009-%25e2%2580%2593-glendale-az-%25e2%2580%2593-part-ii%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Ok, it&#8217;s day 1 (or actually day 2) for AstriCon 2009 &#8211; and here&#8217;s my report for the day.</p>
<p>Yesterday was kind&#8217;a of a hectic day for me, as I was teaching a full day track of Asterisk and Cloud Computing, specifically, implementing Asterisk systems with Amazon EC2. I started the day with a class filled with 20+ people, and ended the day with a similar number &#8211; so in general I&#8217;m very happy. Not many people tend to attend the pre-conference days, so having that number of people and their positive reactions through out the day were very reassuring to me.</p>
<p>If there is one thing I&#8217;ve learned from this experience, it is the following: If you give a full day track, don&#8217;t arrive at the hotel 24 hours prior to it &#8211; you need at least 48 hours! People didn&#8217;t really notice (I hope), but through out the day I was suffering from a splitting headache &#8211; one that would usually send me right into bed with a couple of Advil&#8217;s. But hey, that didn&#8217;t stop me and I powered through it, I&#8217;m fairly proud of myself for doing so &#8211; as at the end of the day I regained back my strength and was livelier.</p>
<p>Today was the first official day of the conference &#8211; I gave the opening talk for the Cloud Computing track of the day. My talk was about how to build &#8220;IP Centrex&#8221; like services, without building an &#8220;IP Centrex&#8221;. I guess that I didn&#8217;t really introduce a brand new concept, but actually talked about something that many are thinking about, but are not inclined to try it on their own and burn some cash on. I guess my talk helped them out saying: &#8220;Hey, we&#8217;re not talking out of our asses here, this guy makes some sense and what we thought of isn&#8217;t that far fetched&#8221;.</p>
<p>Previous to that, Digium announced the <a title="2009 Innovation Award Winners" href="http://www.digium.com/en/mediacenter/viewpress/digium-announces-winners-of-2009-innovation-awards" target="_blank">2009 Digium innovation award winners</a>, where my company won an award in the pioneer category. This is the second year in a row my company had won the award, and I&#8217;m really happy with being acknowledged for this specific work. Having being a part of the community for over 7 years now, this award, at least to me personally, says a lot &#8211; it&#8217;s basically saying: &#8220;Look, you&#8217;ve done good, you&#8217;ve done some work that really helps out the project and the community in general &#8211; here&#8217;s a beer and a toast to you &#8211; hip hip&#8221; &#8211; well, that&#8217;s kind&#8217;a of a mouth full, but you get what I mean. I think that this is actually the place to mention that the award was for developing a high-powered Dialer/IVR platform, used in the Israeli elections and the work was contracted for a company called <a title="Shtrudel Ltd" href="http://www.shtrudelltd.com" target="_blank">Shtrudel.</a></p>
<p>The all conference party is tonight &#8211; so I better rest up and be ready for it &#8211; should be fun. I guess beer and food are always a good mix when a bunch geeks are getting together <img src='http://www.simionovich.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2009/10/15/astricon-2009-%e2%80%93-glendale-az-%e2%80%93-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Astricon 2009 &#8211; Glendale, AZ &#8211; Part I</title>
		<link>http://www.simionovich.com/2009/10/13/astricon-2009-glendale-az-part-i/</link>
		<comments>http://www.simionovich.com/2009/10/13/astricon-2009-glendale-az-part-i/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 08:49:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[Border Control]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Immigration]]></category>
		<category><![CDATA[Israel]]></category>
		<category><![CDATA[Mark Spencer]]></category>
		<category><![CDATA[Passports]]></category>
		<category><![CDATA[Schuyler Deerman]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=340</guid>
		<description><![CDATA[Well, as some of you know, I'll be speaking at this week's AstriCon convention, being held in Glendale, AZ. I guess that in normal days I wouldn't be starting to write about it prior to the actual convention, however, this time I decided to write about it earlier. I guess the title of this post can be changed to: Tosche Mark Spencer.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F10%2F13%2Fastricon-2009-glendale-az-part-i%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F10%2F13%2Fastricon-2009-glendale-az-part-i%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Well, as some of you know, I&#8217;ll be speaking at this week&#8217;s AstriCon convention, being held in Glendale, AZ. I guess that in normal days I wouldn&#8217;t be starting to write about it prior to the actual convention, however, this time I decided to write about it earlier. I guess the title of this post can be changed to: Tosche Mark Spencer.</p>
<p>In order to understand what I&#8217;m talking about, we need to take a trip down memory lane, to be more exact &#8211; 2.5 years back memory lane.</p>
<p>Date: January 2007, Location: Tel-Aviv, Israel. Mark Spencer along side with Schuyler Deerman of Digium are on their way for their first time visit to Israel. Both of them are flying to Israel together after spending their Christmas holidays in the Middle East, mainly Egypt. Back at that time, I used to work for a company called Atelis &#8211; we were the Digium Israeli distributor. To make a long story short, Mark and Schuyler got held up at the airport for almost 4 hours, by Israeli security. The only thing that helped was for me to call my brother in-law, back then at the NY Israeli consulate, to try and find out what happend to both of them. Aparently, they were held up for questioning &#8211; without notifying anybody on the outside &#8211; who were waiting for them &#8211; what is going on.</p>
<p>Fast forward&#8230;</p>
<p>Date: October 2009, Location: Philadelphia, USA. I&#8217;m being held for a seconday inspection and the immigration control at the US border. The funny thing is, this is not my first trip to the US this year &#8211; I was here last February. The immigration officer looks at me and decideds that I&#8217;m a candidate for an illegal worker for some reason. Maybe the fact that I came in on an e-Ticket and didn&#8217;t have my itenirary printed throw him off, maybe the fact that I looked somewhat young to him, or maybe the fact that I&#8217;m continuing to Phoenix flagged me &#8211; I don&#8217;t know, in any case,<br />
I&#8217;m now being held in secondary inspection, while I have only 50 minutes to get to my connecting flight &#8211; talk about turning up the heat. So, here I am, infront of this immigration officer, who I had to admit does his best to be polite and correct about the way he does his job. I gotta hand it to these guys, I guess they come across some of the worst scums in the world, and yet, they are able to sustain a professional and polite manner at all times &#8211; brava. Any way, he starts questioning me about my travel to the US, who paid for it, where am I going, where do I work, etc, etc. So, I<br />
start explaining to him what AstriCon is, giving the guy the 5 minute &#8220;Asterisk is&#8221; introduction, and for some reason, it doesn&#8217;t really cut it with him. So, I decide to pull out the ultimate weapon &#8211; The Internet. I ask him if he&#8217;s able to logon to www.astricon.net and see that my picture is on the website. He looks the site up and indeed my picture is on there. The guy is now convinced that I&#8217;m here to lecture and nothing more &#8211; thank god. I get my passport back, pick up my stuff and run like the wind to my connecting flight &#8211; getting to it right before they close the boarding doors.</p>
<p>So, although I didn&#8217;t get the same 4th degree Mark/Schuyler did, I understand what they must have felt like in there. I guess it could have been worse, another guy that was in there with me got deported back to where he came in from (don&#8217;t know where that was) &#8211; not a very pleasent scenario.</p>
<h2><strong>Points for travelers</strong></h2>
<ol>
<li> You&#8217;re coming to the USA, have your itenirary printed and ready</li>
<li> Have you flight invoices printed and hotel reservations printed &#8211; it may be required</li>
<li>If you are staying with friends, not at a hotel &#8211; state that when asked, don&#8217;t hide it.</li>
<li>If you had memorized your answers, these guys will pick up on it really easy &#8211; they know their job.</li>
<li>If you are lecturing in a convention or tradeshow, make sure you can point the officer to an online mention of your talk &#8211; this helps smooth things faster.</li>
</ol>
<p>Tomorrow&#8217;s update &#8211; AstriCon Cloud Computing class</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2009/10/13/astricon-2009-glendale-az-part-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A baby, a house and a full time job</title>
		<link>http://www.simionovich.com/2009/07/19/a-baby-a-house-and-a-full-time-job/</link>
		<comments>http://www.simionovich.com/2009/07/19/a-baby-a-house-and-a-full-time-job/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 11:22:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AGI]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[technnology]]></category>
		<category><![CDATA[Amazon Elastic Compute Cloud]]></category>
		<category><![CDATA[Application programming interface]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[File sharing]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Pirate Bay]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=319</guid>
		<description><![CDATA[For those of you who know personally, you probably already know that last month I became a father. I guess the transition is something that I was more or less ready for, at least on the technical terms of the transition.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F07%2F19%2Fa-baby-a-house-and-a-full-time-job%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F07%2F19%2Fa-baby-a-house-and-a-full-time-job%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>For those of you who know personally, you probably already know that last month I became a father. I guess the transition is something that I was more or less ready for, at least on the technical terms of the transition. However, the thing that completely surprised me was the mental transition &#8211; which isn&#8217;t even related to the somewhat lack of sleep here and there.</p>
<p>So, here I am, about a month and half away into the final touches to our new home, spending the weekend deploying over 100 meters of CAT-5 cabling in the house &#8211; yes the house is network rigged to the teeth. I&#8217;m sitting in my daughters room, clamping away the wall sockets for the network, thinking to myself: &#8220;hmmmm&#8230;. will Nitzan need a single network connection? or should I put at least two for future usage? &#8230; hmmmm&#8230;. well, I guess time would tell&#8221;. In any case, so there I was, spending most of my weekend being my own geeky self, thinking about wiring, networking, wireless exposures, access points, etc. I then go back home, and suddenly, all that disappears the minute I put Nitzan on my shoulder to burp her. It&#8217;s really funny, but with her on my shoulder, I guess everything goes away for a few minutes. My brother-in-law informed the house that he caught me burping Nitzan, while sitting at my computer answering emails with the other hand &#8211; Ok, so I can&#8217;t stop being a geek all together.</p>
<p>In any case, here I am juggling the various aspects of being a father to a new born baby, attending to the various tasks required to final touches of the house (painters, cleaners, air cons, dry walls, etc) and of course, attending to my customers &#8211; some of which are completely ambivalent to the fact that I&#8217;m under a constant lack of sleep in the past month. Well, I guess in a couple of months Nitzan will start sleeping better, and would make life easier for both me and my wife; in the mean while, we take comfort with the sleep periods my wife gets during the day, so that I can work and cater to my customers, while she caters to Nitzan during the nights &#8211; and I have to be honest about this, when it comes to the baby, my wife is the closest thing to a Jedi Knight, her ability to stay focused and clam even when the Nitzan is screaming is amazing &#8211; I can&#8217;t always do it.</p>
<p>Ok, enough about the house and Nitzan, let&#8217;s go back to been geeks for a bit. As you can see on the right hand side of the blog, I&#8217;ll be speaking at the up-coming <a title="Astricon Speakers List" href="http://www.astricon.net/confSpeakers.aspx" target="_blank"><span class="zem_olink">Astricon</span></a>. I&#8217;ll be giving a talk about how to build &#8220;IP-Centrex&#8221; like installations, utilizing Asterisk and tools like VMWARE, XEN and OpenVZ. However, while my talk may be interesting to you (I hope), my pre-conference tutorial will be much more interesting. I&#8217;ll be giving a full day tutorial, teaching people how to install Asterisk in a clouded environment (<a class="zem_slink" title="Cloud Computing" rel="wikinvest" href="http://www.wikinvest.com/concept/Cloud_Computing">cloud computing</a>), mainly the <a class="zem_slink" title="Amazon EC2" rel="crunchbase" href="http://www.crunchbase.com/product/amazon-ec2">Amazon EC2</a> cloud computing infrastructure. For those of you reading this blog, you may have noticed that I&#8217;ve developed a <a title="Various posts about Amazon EC2" href="http://www.simionovich.com/tag/amazon/" target="_blank">distinct interest in the Amazon EC2 cloud</a>, which I&#8217;ve written about several times and also lectured about at Amoocon. While my Amoocon presentation was mainly informational, at Astricon I&#8217;ll be primarily teaching you how to do what I did. Well, I won&#8217;t be teaching you the inner workings of the <a title="GreenfieldTech IVR API framework" href="http://www.greenfieldtech.net/products/gtvapi" target="_blank">GreenfieldTech IVR API framework</a>, although, if you&#8217;re gonna ask questions I will answer (especially if you ask the question 3 times, I can&#8217;t stand it when people ask the same question 3 times &#8211; I just have to answer it &#8211; nudge nudge).</p>
<p>Ok, back to fatherhood and Nitzan stuff. The mental transition that I was referring to before is something that I felt last night in its most force. My wife and I decided to go to one of the malls, not far away from our house. So, we entrusted Nitzan with my in-laws and drove to the mall. The mall I&#8217;m referring to is called &#8220;The seven stars mall&#8221; and we like it. It&#8217;s not a big mall, but its got this shop called DOMO, that carries these high class cooking ware (my wife and I really like to cook &#8211; my chilli con-carne is well known). So, here we were walking the mall, after I ordered a pair of shoes that I needed. So, my wife comments: &#8220;You know something, let&#8217;s see if there is some sale at Super-Pharm.&#8221; &#8211; and then we ended up purchasing baby formula, pacifiers and baby wipes. I then asked my wife if she maybe wants to walk into DOMO, but we both didn&#8217;t really think about it &#8211; suddenly, something that was like a default prior to Nitzan is no longer a default &#8211; interesting isn&#8217;t it?</p>
<p>In any case, this is how my life looks like at this point in time &#8211; and I have to admit that I kind&#8217;a like it. Sure, I don&#8217;t get as much sleep as I got before, but hey, I&#8217;m happy with it &#8211; so I just keep on smiling and go on forward.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/3e059ca7-4f5b-4284-8e33-9013e7224e35/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=3e059ca7-4f5b-4284-8e33-9013e7224e35" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2009/07/19/a-baby-a-house-and-a-full-time-job/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Asterisk and Amazon EC2 &#8211; Amoocon Presentation</title>
		<link>http://www.simionovich.com/2009/05/14/asterisk-and-amazon-ec2-amoocon-presentation/</link>
		<comments>http://www.simionovich.com/2009/05/14/asterisk-and-amazon-ec2-amoocon-presentation/#comments</comments>
		<pubDate>Wed, 13 May 2009 22:57:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[technnology]]></category>
		<category><![CDATA[AGI]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Dialers]]></category>
		<category><![CDATA[economy]]></category>
		<category><![CDATA[GreenfieldTech]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHPAGI]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMWARE]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=301</guid>
		<description><![CDATA[I recently gave a presentation at the Amoocon convention, held in Rostock, Germany &#8211; about Asterisk and Amazon EC2. Below is a medium quality video of that presentation: or you may download it here: Amazon EC2 and Asterisk video files]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F05%2F14%2Fasterisk-and-amazon-ec2-amoocon-presentation%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F05%2F14%2Fasterisk-and-amazon-ec2-amoocon-presentation%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently gave a presentation at the Amoocon convention, held in Rostock, Germany &#8211; about Asterisk and Amazon EC2. Below is a medium quality video of that presentation:</p>
<p> <embed src="http://www.amoocon.de/assets/talks/27/EC2-medium.mov" width="480" height="284" href="http://www.amoocon.de/assets/talks/27/EC2-medium.mov" autohref="false">  </p>
<p>or you may download it here:<br />
<a href="http://www.amoocon.de/talks/27">Amazon EC2 and Asterisk video files</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2009/05/14/asterisk-and-amazon-ec2-amoocon-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.amoocon.de/assets/talks/27/EC2-medium.mov" length="201098713" type="video/quicktime" />
		</item>
		<item>
		<title>GreenfieldTech announces the general availability of app_cashmaker for Asterisk</title>
		<link>http://www.simionovich.com/2009/04/01/greenfieldtech-announces-the-general-availability-of-app_cashmaker-for-asterisk/</link>
		<comments>http://www.simionovich.com/2009/04/01/greenfieldtech-announces-the-general-availability-of-app_cashmaker-for-asterisk/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 12:53:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[technnology]]></category>
		<category><![CDATA[AGI]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[ami]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[CONTENT]]></category>
		<category><![CDATA[digium]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[MOBILE]]></category>
		<category><![CDATA[S3]]></category>
		<category><![CDATA[STREAMING]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=283</guid>
		<description><![CDATA[Udim, Israel. April 1, 2009 -GreenfieldTech Ltd., a leading provider of Asterisk solutions of training services in Israel, today announced the availability of it's patented app_cashmaker application for the Asterisk Open Source PBX system. The CashMaker application is intended to be used by various content suppliers, wishing to distribute Audio and Video based content, utilizing their Asterisk server. ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F04%2F01%2Fgreenfieldtech-announces-the-general-availability-of-app_cashmaker-for-asterisk%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F04%2F01%2Fgreenfieldtech-announces-the-general-availability-of-app_cashmaker-for-asterisk%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Udim, Israel. April 1, 2009 -</strong>GreenfieldTech Ltd., a leading provider of Asterisk solutions and Asterisk training services in Israel, today announced the availability of it&#8217;s patented app_cashmaker application for the Asterisk Open Source PBX system. The CashMaker application is intended to be used by various content suppliers, wishing to distribute Audio and Video based content, utilizing their Asterisk server.</p>
<p>The application is built to accept an inbound call into it, then, according to various information gathered in correlation to the callers caller ID and/or inbound DID number, will correlate a relevant content stream directly to the caller. The content distributor doesn&#8217;t even have to care about what content to distribute, as the application will connect directly, via the Internet, to a remotely available RTBSP streaming server at GreenfieldTech data center.</p>
<p>&#8220;The app_cashmaker application is the result of the cumulative work of over 3 years in the making, testing various content business models and applications. The main problems most content distributors have is how to gather the content and manage it, with app_cashmaker, this requirement is negated, thus allowing the distributor to concentrate on what they do best &#8211; flooding the newpapers with ads and marketing material to promote their content delivery service&#8221;, says Nir Simionovich, CEO and Founder of GreenfieldTech.</p>
<p>Simionovich indicated that the central content distribution facility is managed via a GTBS cluster environment, implemented partially utilizing Amazon&#8217;s EC2 and S3 structures, while utilizing GreenfieldTech&#8217;s proprietary streaming and clustering technologies. Currently, GreenfieldTech had submitted 10 different provisional patents, relating to the technologies comprising the app_cashmaker application and service. GreenfieldTech marketing team had indicated that initial beta trials had showed an increase in content availability, via the GreenfieldTech BSC Cloud facilityof over 40% with an increase of almost 80% in content delivery success.</p>
<p>Simionovich estimates that by the year 2010, over 20,000,000 will use the GreenfieldTech app_cashmaker facility, disrupting completely the way mobile, audio and video content is distributed around the world.</p>
<p><strong>Asterisk</strong> is the world&#8217;s leading open source PBX telephony engine, and telephony applications solution. It offers unmatched flexibility in a world previously dominated by expensive proprietary communications systems. The Asterisk solution offers a rich and flexible voice infrastructure that integrates seamlessly with both traditional and advanced VoIP telephony systems. For more information on Asterisk visit <a href="http://www.asterisk.org">http://www.asterisk.org</a> </p>
<p>For more information, please refer to the GreenfieldTech website at <a href="http://www.greenfieldtech.net" target="_blank">http://www.greenfieldtech.net</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2009/04/01/greenfieldtech-announces-the-general-availability-of-app_cashmaker-for-asterisk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cloud Computing negates IP Centrex Services</title>
		<link>http://www.simionovich.com/2009/03/04/cloud-computing-negates-ip-centrex-services/</link>
		<comments>http://www.simionovich.com/2009/03/04/cloud-computing-negates-ip-centrex-services/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 11:30:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[technnology]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=263</guid>
		<description><![CDATA[Look out Broadsoft, Asterisk and Amazon are coming - and a hail storm follows them.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F03%2F04%2Fcloud-computing-negates-ip-centrex-services%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F03%2F04%2Fcloud-computing-negates-ip-centrex-services%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Today I sat down with a friend, a telecom consultant like myself. The main difference between the two of us is that, while I&#8217;m purely focused on Open Source technologies, he&#8217;s focused on proprietary technologies. Well, I can&#8217;t really blame him, after all, he used to be the CTO of a Tier-1 long-distance carrier in Israel and his track record of building large scale systems can&#8217;t be negated or dispersed at ease.</p>
<p>In any case, we were discussing the financial validity of obtaining an IP centrex platform vs. building one of your own based on Asterisk. On one hand of the scale, we had companies such as Broadsoft and the like, proprietary technologies for building IP centrex environments. In addition, we&#8217;ve discussed the various FlatPlanetPhone type companies, rendering IP centrex type services via Asterisk, in a hosted model solution. It is obvious that if you are going into the &#8220;retail&#8221; business, then you simply sign up as a reseller of anyone that hosts their own platform and go on from there &#8211; however, this was not the case.</p>
<p>Our discussion was based on the following assumption: a projected customer wants to host IP centrex like services to a total of 15,000 business subscribers, each one consisting of anything from 5 users at the low end to 60 users at the high end. The average calculation was 33 users and multiplied that by 7500 (half of the project users case) &#8211; giving us a total 247,500 connected phones. Ok, a Broadsoft of that size is WAY WAY WAY more expensive than our projected budget, and building our own IP centrex platform based on Asterisk would take too much time.</p>
<p>Recently, advances on the implementation of Asterisk utilizing Amazon EC2 had resulted with the implementation of a full office PBX system can be implemented within an EC2 instance. While the PBX is based on Asterisk + FreePBX, it surely can provide any of the required IP Centrex type of services a normal PBX platform will provide &#8211; in addition to the hosting environment which is highly reliable.</p>
<p>Now, a normal office works anything between 9 to 11 hours per day. Doing some Amazon math shows that running a PBX system, 11 hours per day, 22 days a week, yields a total of 242 hours per month. Thus, based upon a medium C1 instance, we&#8217;re talking about 49$ per month for running your PBX. Bandwidth for a PBX that size would cost around the 5$ per month, and the elastic IP is another 3$, thus, a total of 57$ per month, cost to the operator. The IP centrex model dictates a price per phone, thus, an office of 5 people, with a minimum charge of 39$ per phone per month, leaves us 137$ of profit per month. Let&#8217;s imagine that you&#8217;re using phones like SNOM 300 as your base phone, these are 80$ value at large quantities. Thus, the customer ROI is around the 4-5 months, which is normal in the services world.</p>
<p>Now, the PBX system can go online and offline on a daily basis, while being offline having its inbound calls directed to a company voicemail. This will save all the off-hours messages people may leave on the system and will also lower operational costs on a per day basis. If a company requires to have it&#8217;s PBX system up and running at all times, simply charge a bit more, no big deal.</p>
<p>In other words, the utilization of Amazon EC2 instances with proper AWS management and control can introduce a new business model &#8211; the Clouded PBX service. No more need to own large portions of data center realestate, no need to maintain large teams of IT and network personnel &#8211; just setup you AWS account, build your management system &#8211; and start earning cash. Look out Broadsoft, Asterisk and Amazon are coming &#8211; and a hail storm follows them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2009/03/04/cloud-computing-negates-ip-centrex-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read my words &#8211; 3500 concurrent channels with Asterisk!</title>
		<link>http://www.simionovich.com/2009/02/13/read-my-words-3500-concurrent-channels-with-asterisk/</link>
		<comments>http://www.simionovich.com/2009/02/13/read-my-words-3500-concurrent-channels-with-asterisk/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 15:28:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[technnology]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Dialers]]></category>
		<category><![CDATA[digium]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[S3]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=250</guid>
		<description><![CDATA[One of the biggest questions in the world of Asterisk is: &#8220;How many concurrent channels can be sustained with an Asterisk server?&#8221; &#8211; while many had tried answering the question, the definitive answer still alludes us. Even the title of this post says &#8220;3500 concurrent channels with Asterisk&#8221; doesn&#8217;t really say much about what really]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F02%2F13%2Fread-my-words-3500-concurrent-channels-with-asterisk%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F02%2F13%2Fread-my-words-3500-concurrent-channels-with-asterisk%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>One of the biggest questions in the world of Asterisk is: &#8220;How many concurrent channels can be sustained with an Asterisk server?&#8221; &#8211; while many had tried answering the question, the definitive answer still alludes us. Even the title of this post says &#8220;3500 concurrent channels with Asterisk&#8221; doesn&#8217;t really say much about what really happend. In order to be able to understand what &#8220;concurrent channels&#8221; really means in the Asterisk world, let us take a look at some tests that were done in the past.</p>
<h1>Asterisk as a Signalling Only Switch</h1>
<p>This scenario is one of the most common scenarios in the testing world, and relies upon the basic principle of allowing media (RTP) to traverse from one end-point to the other, while Asterisk is out of the loop regarding anything relating to media processing (RTP). Examine the following diagram from one of the publicly available OpenSER manuals:</p>
<div class="wp-caption aligncenter" style="width: 400px"><img title="Direct Media Path between phones via a SIP Proxy" src="http://openser.oralnet.co.uk/images/call-flow/INVITE-stateless_proxy.gif" alt="Direct Media Path between phones via a SIP Proxy" width="390" height="354" /><p class="wp-caption-text">Direct Media Path between phones via a SIP Proxy</p></div>
<p>As you can see from the above, the media path is established between our 2 SIP endpoints.</p>
<p>This classic scenario had been tested in multiple cases, with varying codec negotiations, varying server hardware, varying endpoints, varying versions of Asterisk &#8211; no matter what the case was, the results were more or less the same. Transnexus had reported being able to sustain over 1,200 concurrent channels in this scenario, which makes perfect sense.</p>
<p>Why does it make sense? very simple, as Asterisk doesn&#8217;t manage or mangle RTP packets, Asterisk performs less work and the server also consumes less resources.</p>
<h1>Asterisk as a Media Gateway</h1>
<p>Another test that people had done numerous times is to utilize Asterisk a Media Gateway. People used it as a SIP to PSTN gateway, SIP to IAX2 gateway, even as a SIP to SIP transcoder gateway. In any case, the performance here varied immensly from one configuration to another, however, they all relied on a simple call routing mechanism of routing calls between endpoints and allowing Asterisk to handle media proxy tasks and/or handle codec translation tasks.</p>
<p>Depending on the tested codec, I&#8217;ve seen reports of sustain over 300 concurrent channels of media on a single server, while other claim for around the 140 concurrent channels mark &#8211; this again mostly relied on various hardware/software/network configurations &#8211; so there is nothing new in there.</p>
<h1>These tests tell us nothing</h1>
<p>While these tests are really nice in the theoretical plane of thinking, it doesn&#8217;t really help us in the design and implementation of an Asterisk system &#8211; no matter if it is an IVR system, a PBX system or a time entry phone system for that matter &#8211; it simply doesn&#8217;t provide that kind of information.</p>
<h1>The Amazon EC2 performance test</h1>
<p>In my previous post, <a title="http://www.simionovich.com/?p=243" href="http://www.simionovich.com/?p=243" target="_blank">Rock Solid Clouded Asterisk</a>, I&#8217;ve discussed the various mathmatics involved in calculating the RoI factors of utilizing Cloud computing. One thing the article didn&#8217;t really tell us, did it really work?</p>
<p>Well, here are some of the test results that we managed to validate:</p>
<ul>
<li>Total number of Asterisk based Amazon EC2 instances used: 24</li>
<li>Total number of concurrent channels sustained per instances (including media and logic): 80</li>
<li>Average length of call: 45 seconds</li>
<li>Total number of calls served: 2.84 Million dials</li>
<li>Test length: approximately 36 hours</li>
</ul>
<p>According to the above data, each server was required to dial an approximate 3300 dials every hour. So, let&#8217;s run the math again:</p>
<ul>
<li>3300 Diales per hour</li>
<li>55 Dials per minute</li>
<li>As each call is an average of 45 seconds, this means that each gateway generates 20 calls<br />
per second, and within 4 seconds fills the 80 channels limit per server.</li>
</ul>
<p>According to the above numbers that we&#8217;ve measured, each of the Amazon EC2 instances used was utilized to about 50% of its CPU power, while consuming a load average of 2.4, which was mostly caused by I/O utilization for SIP and RTP handling.</p>
<h1>Conclusion</h1>
<p>When asking for the maximum performance of Asterisk, the question is incorrect. The correct question should be: &#8220;What is the maximum perfromance of Asterisk, utilizing X as the application layout?&#8221; &#8211; where X is the key factor for the performance. Asterisk application performance can vary immensly from one application to another, while both appear to be doing the exact same thing.</p>
<p>When asking your consultant or integrator for the top performance, be sure to include your business logic and application logic in the Asterisk server, so that they may be able to better answer your question. Asterisk as Asterisk is just a tools, asking for its performance is like asking how many stakes a butcher&#8217;s knife can cut &#8211; it&#8217;s a question of what kind&#8217;a steaks you intend on cutting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2009/02/13/read-my-words-3500-concurrent-channels-with-asterisk/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Rock Solid Clouded Asterisk</title>
		<link>http://www.simionovich.com/2009/02/09/rock-solid-clouded-asterisk/</link>
		<comments>http://www.simionovich.com/2009/02/09/rock-solid-clouded-asterisk/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 17:55:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[technnology]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Dialers]]></category>
		<category><![CDATA[digium]]></category>
		<category><![CDATA[Economics]]></category>
		<category><![CDATA[GreenfieldTech]]></category>
		<category><![CDATA[IVR]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=243</guid>
		<description><![CDATA[This post is somewhat a combination of posts from previous posts, mainly, the posts about virtualization and my latest posts about the utilization of Amazon EC2. As some of you may know, a part of what I do at GreenfieldTech is develop various API&#8217;s for the Asterisk Open Source PBX systems. Two of these API&#8217;s]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F02%2F09%2Frock-solid-clouded-asterisk%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F02%2F09%2Frock-solid-clouded-asterisk%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>This post is somewhat a combination of posts from previous posts, mainly, the posts about virtualization and my latest posts about the utilization of Amazon EC2. As some of you may know, a part of what I do at <a title="http://www.greenfieldtech.net" href="http://www.greenfieldtech.net/" target="_blank">GreenfieldTech</a> is develop various API&#8217;s for the Asterisk Open Source PBX systems. Two of these API&#8217;s are the <a title="http://www.greenfieldtech.net/products" href="http://www.greenfieldtech.net/products" target="_blank">IVR API</a> and the <a title="http://www.greenfieldtech.net/products" href="http://www.greenfieldtech.net/products" target="_blank">Dialer API</a>. This post if called &#8220;Rock Solid Clouded Asterisk&#8221; as it will describe the latest production environment that I&#8217;ve implemented, using these API&#8217;s and Amazon EC2 virtualization framework.</p>
<h1>The network diagram</h1>
<p>Our implementation consisted of the following general schematic:</p>
<div id="attachment_244" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.simionovich.com/wp-content/uploads/2009/02/blog_1.jpg"><img class="size-full wp-image-244" title="Network Diagram" src="http://www.simionovich.com/wp-content/uploads/2009/02/blog_1.jpg" alt="Network Diagram" width="500" height="251" /></a><p class="wp-caption-text">Network Diagram</p></div>
<p>The application logic was based upon a JAVA based web-service, implementing the XML-RPC server side of the IVR API, and a dialer management system that controlled the dialer API located on the remotely located dialers &#8211; hosted on Amazon EC2 instances. For simplicity, and we were very much aware this would reduce the overall capacity, we&#8217;ve located both the dialer framework and the IVR API execution on each of the servers, while allowing the server s to communicate internally.</p>
<h1>Some constraints</h1>
<p>As much as we wanted to run many Amazon AMI instances, we were limited to running 5 elastic IPs with a single Amazon AWS account. As a result, we&#8217;ve registered 5 accounts, and executed a total of 24 AMI instances with 24 elastic IP&#8217;s.</p>
<p>An additional constraint we had realised, but had no way of actually knowing its limitation was the actual number of concurrent calls per server. Initially, we&#8217;ve reached the following numbers and configuration on a physical server:</p>
<ul>
<li>Intel Quad Core XEON</li>
<li>2GB RAM</li>
<li>1GB Network Uplink</li>
<li>CentOS 5.2 64bit</li>
<li>Total capacity: 120 concurrent calls of Dialer+IVR on a single server</li>
</ul>
<p>Per our theory, if we managed to reach a similar capacity using amazon c1.medium instances, we would be very happy.</p>
<h1>The results</h1>
<p>After conducting a test utilizing a single AMI instance, we&#8217;ve reached the following results:</p>
<ul>
<li>Dual Core instance (c1.medium)</li>
<li>180GB Disk Storage</li>
<li>8GB of RAM</li>
<li>Fedora Core 8 32bit</li>
<li>Total capacity: 80 concurrent calls of Dialer+IVR on a single instance</li>
</ul>
<p>A decrease of 33% in comparison to the performance observed on a physical server. Ok, so we weren&#8217;t all that happy with these results, until we started doing the financial math, realising that using Amazon EC2 with that Dialer+IVR framework would yield a savings of almost 80% in operational costs.</p>
<h1>Doing the math</h1>
<h2>The normal co-located option</h2>
<p>Our aim was to reach a capacity of around 2800 concurrent channels. Per the normal physical setup, our hardware requirements would be to use at least 24 servers. At a price of 1500$ per server, that sums up to a total of 36,000$. Adding the time required to install 24 servers, the overall expense for 24 servers would be around the 42,000$ mark. To sustain a total of 2800 concurrent calls, using the g711 codec, we would be required to carry a total of 300Mbps internet uplink &#8211; basically talking about 10,000$ of bandwidth.</p>
<p>So, taking all of the above into consideration, we will need a total of 52,000$ just to maintain the hardware installation and operational cost. Taking into consideration that the system would be used at full for no more than a period of 30 hours, we end up with a total of: 1733$ per hour.</p>
<h2>The Amazon EC2 option</h2>
<p>Now, let&#8217;s calculate for Amazon EC2:</p>
<p>2800 concurrent channels translates into 35 instances. Price per c1.medium instance per hour is 0.2$. So, rack that up and you get: 210$ for operating 35 instances for 30 hours.</p>
<p>Elastic IP costs are 0.01$ per hour per server &#8211; a total of 10.5$ for 30 hours.</p>
<p>Bandwidth costs are 0.17 per each GB, so according to 300Mbps for 30 hours, with each call duration at 1 minute sums up to be: 5M of data per call. Calculating 2800 concurrent channels for 30 hours gives: 25,200,00 MB, or 25TB of traffic. According to Amazon, first 10TB are at 0.17$ per GB, and then the price goes down. So, let&#8217;s take a worst case of 0.17$ per GB. A total of 4284$ for operating 30 hours.</p>
<p>A total of: 4,468 US Dollars, Price per hours calculated at: 148$.</p>
<h1>The savings</h1>
<p>Per the task at hand, the utilization of Amazon EC2 yielded a savings of 92%</p>
<h1>So, is Amazon EC2 good for any usage?</h1>
<p>The answer is a definite NO! If your requirement is for a system that works 24&#215;7, like a PBX system or a call center, then your utilization of Amazon EC2 would be identical to leasing a co-located server at any of the world wide co-location providers. If your application is of sporadic nature, or is utilized for short bursts of time, Amazon EC2 is a wonderful tool for lowering your overall expenses. Sure, it will require some work to get running, but the overall savings is more than worth-while.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2009/02/09/rock-solid-clouded-asterisk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Virtualizing Asterisk &#8211; Digium Asterisk World, Feb 2008</title>
		<link>http://www.simionovich.com/2009/02/07/virtualizing-asterisk-digium-asterisk-world-feb-2008/</link>
		<comments>http://www.simionovich.com/2009/02/07/virtualizing-asterisk-digium-asterisk-world-feb-2008/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 16:43:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[technnology]]></category>
		<category><![CDATA[Dialers]]></category>
		<category><![CDATA[digium]]></category>
		<category><![CDATA[Greenfield Technologies]]></category>
		<category><![CDATA[GreenfieldTech]]></category>
		<category><![CDATA[openVZ]]></category>
		<category><![CDATA[PokeTalk.Com]]></category>
		<category><![CDATA[VMWARE]]></category>
		<category><![CDATA[XEN]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=232</guid>
		<description><![CDATA[Well, I just got back from the ITExpo show in Miami, Florida. I have to admit that I really enjoyed the venue, although I didn&#8217;t really have time to walk the floor. The main reason that I was unable to walk the floor was due to the fact that I gave a talk, as part]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F02%2F07%2Fvirtualizing-asterisk-digium-asterisk-world-feb-2008%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F02%2F07%2Fvirtualizing-asterisk-digium-asterisk-world-feb-2008%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Well, I just got back from the ITExpo show in Miami, Florida. I have to admit that I really enjoyed the venue, although I didn&#8217;t really have time to walk the floor. The main reason that I was unable to walk the floor was due to the fact that I gave a talk, as part of the Digium Asterisk World venue, which was co-located with TMCnet&#8217;s ITExpo.</p>
<p>My talk was about the possibilities and incentives for Virtualizing Asterisk using VMWARE and Amazon EC2. Following below is the presentation that I gave.</p>
<p><a title="View Virtualizing Asterisk - Presented at Digium Asterisk World, Feb 2008, Miami, Florida on Scribd" href="http://www.scribd.com/doc/11841748/Virtualizing-Asterisk-Presented-at-Digium-Asterisk-World-Feb-2008-Miami-Florida" style="margin: 12px auto 6px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block; text-decoration: underline;">Virtualizing Asterisk &#8211; Presented at Digium Asterisk World, Feb 2008, Miami, Florida</a> <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_337176977961706" name="doc_337176977961706" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"	height="500" width="100%"><param name="movie"	value="http://d.scribd.com/ScribdViewer.swf?document_id=11841748&#038;access_key=key-2693ru9b2up3r6bf2dnx&#038;page=1&#038;version=1&#038;viewMode=list"><param name="quality" value="high"><param name="play" value="true"><param name="loop" value="true"><param name="scale" value="showall"><param name="wmode" value="opaque"><param name="devicefont" value="false"><param name="bgcolor" value="#ffffff"><param name="menu" value="true"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><param name="salign" value=""><param name="mode" value="list"><embed src="http://d.scribd.com/ScribdViewer.swf?document_id=11841748&#038;access_key=key-2693ru9b2up3r6bf2dnx&#038;page=1&#038;version=1&#038;viewMode=list" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_337176977961706_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" mode="list" height="500" width="100%"></embed></object>
<div style="margin: 6px auto 3px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block;">    <a href="http://www.scribd.com/upload" style="text-decoration: underline;">Publish at Scribd</a> or <a href="http://www.scribd.com/browse" style="text-decoration: underline;">explore</a> others:            <a href="http://www.scribd.com/browse/Presentations-Slideshows/Internet-Technology?style=text-decoration%3A+underline%3B">Internet &#038; Technolog</a>              <a href="http://www.scribd.com/browse/Presentations-Slideshows/?style=text-decoration%3A+underline%3B">Presentations &#038; Slid</a>                  <a href="http://www.scribd.com/tag/amazon" style="text-decoration: underline;">amazon</a>              <a href="http://www.scribd.com/tag/ec2" style="text-decoration: underline;">ec2</a>      	</div>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2009/02/07/virtualizing-asterisk-digium-asterisk-world-feb-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So long SigValue &#8211; Hello Asterisk + EC2!</title>
		<link>http://www.simionovich.com/2009/02/02/so-long-sigvalue-hello-asterisk-ec2/</link>
		<comments>http://www.simionovich.com/2009/02/02/so-long-sigvalue-hello-asterisk-ec2/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 06:01:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AGI]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[technnology]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Broadsoft]]></category>
		<category><![CDATA[digium]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Nortel]]></category>
		<category><![CDATA[Personeta]]></category>
		<category><![CDATA[S3]]></category>
		<category><![CDATA[SigValue]]></category>
		<category><![CDATA[Sylantro]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=223</guid>
		<description><![CDATA[As some of you may know, I&#8217;ll be attending the ITExpo in Miami Beach, Florida. The subject I&#8217;ll be lecturing about is &#8220;Virtualizing Asterisk&#8221;. However, I have to be honest, I really need to change the subject to be called &#8220;Asterisk in the Cloud&#8220;. Ever since the introduction of Amazon EC2, people had been trying]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F02%2F02%2Fso-long-sigvalue-hello-asterisk-ec2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F02%2F02%2Fso-long-sigvalue-hello-asterisk-ec2%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>As some of you may know, I&#8217;ll be attending the <a title="ITExpo" href="http://www.itexpo.com" target="_blank">ITExpo</a> in Miami Beach, Florida. The subject I&#8217;ll be lecturing about is &#8220;Virtualizing Asterisk&#8221;. However, I have to be honest, I really need to change the subject to be called &#8220;<a title="Asterisk" href="http://www.asterisk.org" target="_blank">Asterisk</a> in the <a title="Cloud Computing" href="http://www.greenfieldtech.net/expertise" target="_blank">Cloud</a>&#8220;.</p>
<p>Ever since the introduction of Amazon EC2, people had been trying to get Asterisk to run properly inside an EC2 instance. While installing a vanilla Asterisk on any of the Fedora/RedHat variant instances in EC2 isn&#8217;t much of a hassle, getting the funky stuff to work is a little more tricky.</p>
<p>One of these tricky bits (which I hadn&#8217;t yet found a solution for) is the issue of supplying a timer for Asterisk&#8217;s MeetMe application. In the old days (prior to Asterisk 1.6), Asterisk required the utilization of a virtual timer driver, provided by Zaptel in the past and now the DAHDI framework. The problem is, that while you are fully capable of compiling and installing DAHDI on an Amazon EC2 instance &#8211; the problem starts once you want to use it.</p>
<h1>A few words about Amazon EC2</h1>
<p>For those not familiar with Amazon EC2, its general infrastructure is based upon the XEN virtualization project. XEN is a para-virtualization framework, meaning that is performs some of the work utilizing the underlying Operating System kernel and some of the work performed with a special Kernel in the virtualized Operating System instance. This poses an interesting issue with every type of application that relies on hardware resources and their emulation.</p>
<p>To learn more about the XEN project, go to <a title="http://www.xen.org" href="http://www.xen.org/" target="_blank">http://www.xen.org</a>.</p>
<h1>So, where&#8217;s the big deal?</h1>
<p>So, if you can compile your code and run it in an instance, as long as you have the kernel headers and kernel source packages &#8211; you should be just fine &#8211; right? WRONG!</p>
<p>Amazon EC2 deploys its own Kernel binary image upon bootstrap, causing what ever compilation you may have done to the Kernel to go away (unless you&#8217;re creating a machine from real scratch). Another issue is a version skew between the installed Operating System kernel modules, the actual kernel and the installed compiler. For example, the instance that I was using had the XEN capable kernel compiled with gcc version 4.0.X, while the installed operating system was gcc version 4.1.X &#8211; so, no matter what I did to compile my kernel modules or binary kernel, I would always end up in a situation where loading the newly compiled kernel modules will generate an error.</p>
<p>Did I manage to solve it? &#8211; NOT YET. I&#8217;m still working on it, and I have to admit, that considering the fact that I have over 10 years of Linux experience and had compiled kernels from scratch many times, this one has gotten me a little baffled &#8211; I guess I&#8217;ll just need a few more nights and a case of Red-Bull to crack this one open.</p>
<h1>So, what can we do with EC2?</h1>
<p>In my view, EC2 + Asterisk is the ultimate IN/NGN services environment &#8211; and I have proof of that. A recent lab test that I did with one of my customers showed a viable commercial alternative to Sigvalue when using Asterisk and EC2 structures. The main reason for our belief in using EC2 was the following graph:</p>
<div id="attachment_224" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.simionovich.com/wp-content/uploads/2009/02/graph1.png"><img class="size-full wp-image-224" title="IN/NGN usage over 24 hours" src="http://www.simionovich.com/wp-content/uploads/2009/02/graph1.png" alt="IN/NGN usage over 24 hours" width="480" height="360" /></a><p class="wp-caption-text">IN/NGN usage over 24 hours</p></div>
<p>What we&#8217;ve noticed was that while our IN/NGN system was generating traffic, it&#8217;s general usage showed peak usage for a period of 2.5 hours, with a gradial increase and decrease over a period of almost 10 hours. Immediately that led us to a question: &#8220;Can we use Amazon EC2 to provide an automatd scaling facility for the IN/NGN system, allowing the system to reduce its size as required?&#8221;</p>
<p>To do this, we&#8217;ve devised the following IN/NGN system:</p>
<div id="attachment_225" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.simionovich.com/wp-content/uploads/2009/02/ec2-architecture.jpg"><img class="size-full wp-image-225" title="Amazon EC2 Enabled IN/NGN Platform" src="http://www.simionovich.com/wp-content/uploads/2009/02/ec2-architecture.jpg" alt="Amazon EC2 Enabled IN/NGN Platform" width="480" height="581" /></a><p class="wp-caption-text">Amazon EC2 Enabled IN/NGN Platform</p></div>
<p>Our softswitch would have a static definition of routing calls to all our Asterisk servers, including our EC2 instances which had static Elastic IP numbers assigned to these. The EC2 Controller server was incharge of initiating the EC2 instances at the pre-defined times, mainly, 30 minutes prior to the projected increase in traffic. Once the controller reaches its due timer, it will automatically launch the EC2 instances required to sustain the inbound traffic.</p>
<p>For our tests, we&#8217;ve initiated 5 AMI instances, using the EC2 c1.medium instance. This instance basically includes 2 cores of an AMD opteron, about 8GB of RAM and about 160GB of Hard drive &#8211; more than enough. Initially, we&#8217;ve started spreading the load evenly across the servers, reaching about 80 concurrent channels per instance, and all was working just fine. We managed to reach a point where we were able to sustain a total of about 110 concurrent channels per instance, including the media handling &#8211; which is not too bad, considering that we are running inside a XEN instance. The one thing that made the entire environment extremely light weight is the <a title="http://www.greenfieldtech.net/products" href="http://www.greenfieldtech.net/products" target="_blank">GTx Suite </a>of APIs for Asterisk. Thanks to the <a title="http://www.greenfieldtech.net/products" href="http://www.greenfieldtech.net/products" target="_blank">GTx Suite</a> of APIs, scalability is fairly simple, as all application-layer logic is controlled from a central business logic engine, serving the Asterisk servers via an XML-RPC based web service. Thanks to Amazon, practically infinite, bandwidth allocation &#8211; the connections from the Asterisk servers to the US based central business logic was set at a whopping 25mSec, thus, there was no visible delay to the end user.</p>
<p>It is clear that the utilization of Asterisk and EC2 operational constructs can allow a carrier to establish their own IN/NGN environment. However, how these are designed, implemented and operated are at the hands of the carrier &#8211; and not a specific vendor. If the carriers around the world will take to this approach, time will tell. As a recent survey stated that 18% of the US PBX market is currently dominated by Open Source solution, having Digium dominate 85% of these 18% (~15%), I&#8217;m confident that we will see this combination of solutions in the near future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2009/02/02/so-long-sigvalue-hello-asterisk-ec2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thoughts of virtualization &#8211; Part III</title>
		<link>http://www.simionovich.com/2009/01/21/thoughts-of-virtualization-part-iii/</link>
		<comments>http://www.simionovich.com/2009/01/21/thoughts-of-virtualization-part-iii/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 18:25:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AGI]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[technnology]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[dialer]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMWARE]]></category>

		<guid isPermaLink="false">http://www.simionovich.com/?p=201</guid>
		<description><![CDATA[Ok, it&#8217;s been almost 24 hours since I started my serious playing around with Amazon EC2, and I can honestly say that I&#8217;m tired &#8211; however, I&#8217;m very pleased with my results. Like any other experiment, this one started with a requirement. The requirement was to install and operate one of the dialer frameworks I&#8217;ve]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F01%2F21%2Fthoughts-of-virtualization-part-iii%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.simionovich.com%2F2009%2F01%2F21%2Fthoughts-of-virtualization-part-iii%2F&amp;source=nirsimionovich&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Ok, it&#8217;s been almost 24 hours since I started my serious playing around with Amazon EC2, and I can honestly say that I&#8217;m tired &#8211; however, I&#8217;m very pleased with my results. Like any other experiment, this one started with a requirement. The requirement was to install and operate one of the dialer frameworks I&#8217;ve written in the past year on an EC2 based instance. In order to evaluate the process, let&#8217;s start with our baseline installation, meaning, what am I using in the real-world:</p>
<p><strong>Hardware and Software Specification</strong></p>
<p>The original machine answered to the following specification: Quad Core CPU, 2GB of RAM, 250GB of Hard Drive. My original machine was running CentOS 5.2 with an x86_64 kernel installed. In terms of software installed, we had Asterisk 1.4.22.1, MySQL 5.X, PHP, FreePBX, Apache and my dialer framework.</p>
<h1><strong>Introducing Amazon EC2 AMI<br />
</strong></h1>
<p>An EC2 AMI is basically an image of a computer, contained with a single installation manifest on the Amazon cloud computing system. AMI&#8217;s provide for the simplest manner to start using EC2, as these usually include a pre-defined server installation, that usually has some stuff already installed.</p>
<h2>Choosing your AMI</h2>
<p>Amazon provides a multitude of AMI&#8217;s to work with, unfortunately, most of these are either out-dated and the sheer number of these makes the choice somewhat overwhelming. I decided to start working with a working AMI image of Fedora Core 8, that already had the LAMP stack installed &#8211; the one I used was:</p>
<div class="cell_liner"><img src="https://console.aws.amazon.com/images/logo_fedora.gif" alt="LAMP Web Starter" /></div>
<div class="cell_liner"><strong>LAMP Web Starter</strong> (AMI ID: ami-ba4eaad3)<br />
<span class="ami_description">Fedora Core 8, 32-bit architecture, PHP 5.0.4, Apache 2.0.54, and MySQL 4.1.20</span></div>
<h2>The YUM Repository issue</h2>
<p>For some strange reason, the AMI images contained in the Amazon repository are all unable to perform any updates to their installed RPM packages. It took me a while to understand what&#8217;s wrong, but in general, the fedora project had simply removed the old releases from their repository, so I had to go in and manually modify the /etc/yum.repos.d/ configuration files. For you convenience, here is the repos list that I&#8217;m using at this point:</p>
<p><a href="http://www.simionovich.com/wp-content/uploads/2009/01/repos.conf">YUM Repositories for Amazon EC2 Fedora images</a> &lt;- click this to download the file</p>
<pre>[development]
name=Fedora Core $releasever - Development Tree
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/development/$basearch/
enabled=1
gpgcheck=0</pre>
<pre>[extras-development]
name=Fedora Extras $releasever - Development Tree
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/extras/development/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=0</pre>
<pre>[extras]
name=Fedora Extras $releasever - $basearch
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/extras/$releasever/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1</pre>
<pre>[updates-testing]
name=Fedora Core $releasever - $basearch - Test Updates
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/testing/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test</pre>
<pre>[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora</pre>
<pre>[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora</pre>
<p>If you are trying to install an instance, you may use the above for any Fedora based AMI on EC2.</p>
<h2>Creating my own AMI</h2>
<p>While going about and building a single server is fun, I needed a way to create my own installation AMI once I&#8217;ve completed my modifications. The Amazon EC2 resources website gives out a whole lot of information, which can be somewhat confusing for the first time reader. So, I searched for a better way to construct my own AMI image. I found the following web page, which was really really helpful: <a class="wp-caption" title="Azeez's Notes blog" href="http://afkham.org/2008/10/how-to-create-ec2-ami.html" target="_blank">Azeez&#8217;s Notes</a>.</p>
<p>Azeez&#8217;s blog gives a very concise and to the point, step by step, guide to building your own AMI image &#8211; it got me up and running in less than 10 minute &#8211; WAY TO GO AZEEZ.</p>
<h2>So far, so good &#8230;</h2>
<p>So far my installed instances are working just fine and I&#8217;m currently operating a cluster of a few of these dialer systems. I&#8217;m in the process of checking what kind of mileage I&#8217;ll get from the EC2 instances, in comparison to a real hardware server &#8211; which is really interesting.</p>
<p>My main objective here is to be able to build a dialer-on-demand framework, which will enable my customers to increase their capacity utilizing a simple web interface to initiate my AMI instances. I&#8217;ll report back with additional information once I have it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simionovich.com/2009/01/21/thoughts-of-virtualization-part-iii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

