<?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>Internetworking.hu &#187; ISDN</title>
	<atom:link href="http://internetworking.hu/category/voice/isdn/feed/" rel="self" type="application/rss+xml" />
	<link>http://internetworking.hu</link>
	<description>Just another Cisco tech blog</description>
	<lastBuildDate>Thu, 05 Jan 2012 19:22:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Cisco Voice Gateway crash</title>
		<link>http://internetworking.hu/2011/05/cisco-voice-gateway-crash/</link>
		<comments>http://internetworking.hu/2011/05/cisco-voice-gateway-crash/#comments</comments>
		<pubDate>Sat, 28 May 2011 09:38:32 +0000</pubDate>
		<dc:creator>xcke</dc:creator>
				<category><![CDATA[ISDN]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[voice]]></category>

		<guid isPermaLink="false">http://internetworking.hu/?p=86</guid>
		<description><![CDATA[Well, this will be a story about a voice gateway, which is restarting every 12th day:) For mounts we didn&#8217;t notices the problem, because the router was quickly rebooted. After we implemented central logging (I will write about this a post), we received mail about the reboot. We begun writing mails to the Cisco TAC. ]]></description>
			<content:encoded><![CDATA[<p>Well, this will be a story about a voice gateway, which is restarting every 12th day:)<br />
For mounts we didn&#8217;t notices the problem, because the router was quickly rebooted. After we implemented central logging (I will write about this a post), we received mail about the reboot. We begun writing mails to the Cisco TAC. Personally, I have always bad feeling, when I have to give a mysterious issue to the vendor&#8217;s support team.<br />
This was however a nice job. I would like to include the final mail about the problem, because I think it is &#8220;funny&#8221;:) Of course you can imagine, that we had to escalate the problem many times, until we received the solution&#8230;but Cisco TAC, I like you.<br />
<span id="more-86"></span></p>
<blockquote><p>** Problem description</p>
<p>Every 12 days, your router running 12.4(24)T5 is crashing, always due to ISDN L2 Process being unable to allocate a packet :</p>
<p>002261: *May 20 2011 01:52:55.757 CET: %ISDN-2-ISDN_FATAL: ISDN FATAL ERROR: file ../isdn/lif_common.c, function LIF_GetPkt, message: malloc of PKT failed<br />
002262: *May 20 2011 01:52:55.757 CET: %ISDN-2-ISDN_EXIT: malloc of PKT failed  </p>
<p>LIF_GetPkt calls LIF_Get_block which allocates a chunk in isdn_pkt_chunk only if the amount of allocated packets is lower than a limit (isdn_pkt_limit) :</p>
<p>In the coredump, we see that you reached the limit of 6014 packets :</p>
<p>(cisco-6.6.2-r4k-gdb) p/d Used_pkt<br />
$97 = 6014<br />
(cisco-6.6.2-r4k-gdb) p/d isdn_pkt_limit<br />
$99 = 6014</p>
<p>Used_pkt reached isdn_pkt_limit so ISDN triggers a crash (which is a bit aggressive in my opinion) <- xcke: <img src='http://internetworking.hu/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>At some point, you also provided 'show isdn memory' which confirms this :</p>

<div class="wp_syntax"><div class="code"><pre class="ios" style="font-family:monospace;">VGW#Show isdn memory 
        MEMORY POOL STATISTICS
        BlockType           <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">use</span> <span style="color: #000000; font-weight: bold;">max</span> used      limit    initial    increment
        PKT_BTYPE             5700     5702     6014       62         31</pre></div></div>

<p>At that point in time, we were already at 5700.</p>
<p>You also provided q921 debugs.  If we filter the INFO frames with sapi=16, we see this :</p>
<p>$ grep INFO\  isdn.log<br />
000380: *May 19 2011 10:19:52.885 CET: ISDN BR2/3 Q921: Net RX <- info sapi=16 tei=3, ns=65 nr=0<br />
000639: *May 19 2011 10:22:52.869 CET: ISDN BR2/3 Q921: Net RX <- info sapi=16 tei=3, ns=66 nr=0<br />
000905: *May 19 2011 10:25:52.849 CET: ISDN BR2/3 Q921: Net RX <- info sapi=16 tei=3, ns=67 nr=0<br />
001164: *May 19 2011 10:28:52.885 CET: ISDN BR2/3 Q921: Net RX <- info sapi=16 tei=3, ns=68 nr=0<br />
001424: *May 19 2011 10:31:52.869 CET: ISDN BR2/3 Q921: Net RX <- info sapi=16 tei=3, ns=69 nr=0<br />
001683: *May 19 2011 10:34:52.853 CET: ISDN BR2/3 Q921: Net RX <- info sapi=16 tei=3, ns=70 nr=0<br />
001942: *May 19 2011 10:37:52.833 CET: ISDN BR2/3 Q921: Net RX <- INFO sapi=16 tei=3, ns=71 nr=0 </p>
<p>INFO frames are received every 3 minutes. To fill up the ISDN packet chunk with one packet every 3 minutes, it takes 3*6014/60/24 = 12 days.</p>
<p>sapi=16 is X.25. However, you have no X25 configuration on your router.</p>
<p>** Action plan</p>
<p>Could you provide the configuration from the other side of BRI2/3 ?  We probably need to disable X.25 there to stop the leak.</p>
<p>To confirm this, after you've changed the config on the other side, monitor 'sh isdn memory | i PKT_BTYPE' and check that it no longer increments (for more than 3 minutes). </p></blockquote>
<p>WTF?:) This will be an EVIL FAX device I think <img src='http://internetworking.hu/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://internetworking.hu/2011/05/cisco-voice-gateway-crash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

