<?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>CCNP Recertification</title>
	<atom:link href="http://ccnprecertification.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ccnprecertification.com</link>
	<description>Study notes for the Cisco CCNP exam</description>
	<lastBuildDate>Mon, 25 Jan 2010 15:26:47 +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>CCNP completely redone</title>
		<link>http://ccnprecertification.com/2010/01/25/ccnp-completely-redone/</link>
		<comments>http://ccnprecertification.com/2010/01/25/ccnp-completely-redone/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 15:24:07 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/?p=153</guid>
		<description><![CDATA[This is the biggest change I&#8217;ve seen in the CCNP:
BSCI becomes ROUTE
BCMSN becomes SWITCH
ISCW and ONT become TSHOOT
Looks like more IPv6 content, multicast and IS-IS are gone, and more focus on simulations and troubleshooting.
The old exams are phased out on July 31, so if you have can make it by that date, get cracking!
Exams are [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2010/01/25/ccnp-completely-redone/">CCNP completely redone</a></p>



No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>This is the biggest change I&#8217;ve seen in the CCNP:</p>
<p>BSCI becomes ROUTE<br />
BCMSN becomes SWITCH<br />
ISCW and ONT become TSHOOT</p>
<p>Looks like more IPv6 content, multicast and IS-IS are gone, and more focus on simulations and troubleshooting.</p>
<p>The old exams are phased out on July 31, so if you have can make it by that date, get cracking!</p>
<p>Exams are now $200.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2010/01/25/ccnp-completely-redone/">CCNP completely redone</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2010/01/25/ccnp-completely-redone/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>More command line NetFlow reports</title>
		<link>http://ccnprecertification.com/2009/02/19/more-command-line-netflow-reports/</link>
		<comments>http://ccnprecertification.com/2009/02/19/more-command-line-netflow-reports/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 16:07:27 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Network Management]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/?p=148</guid>
		<description><![CDATA[As I dig into flow-tools a bit more, I&#8217;m finding easier ways of doing things. For example, the same command line variable substitution that I&#8217;ve used to filter IP addresses with flow-nfilter can be used to generate different reports with flow-report.
In /etc/flow-tools/cfg/stat.cfg the default report is:
stat-report default
  type @{TYPE:-summary-detail}
  output
    [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2009/02/19/more-command-line-netflow-reports/">More command line NetFlow reports</a></p>



No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>As I dig into flow-tools a bit more, I&#8217;m finding easier ways of doing things. For example, the same command line variable substitution that I&#8217;ve used to filter IP addresses with flow-nfilter can be used to generate different reports with flow-report.</p>
<p>In /etc/flow-tools/cfg/stat.cfg the default report is:</p>
<pre><code>stat-report default
  type @{TYPE:-summary-detail}
  output
    format ascii
    sort @{SORT:-+}
    fields @{FIELDS:-+}
    options @{OPTIONS:-+header,+xheader,+totals}
    path |flow-rptfmt @{RPTOPT:--f ascii}

stat-definition default
  report default
</code></pre>
<p>This is a fairly generic report. But notice that many of the options can be overridden.  For example, type @{TYPE:-summary-detail} means that the default is &#8220;summary-detail&#8221;, but can be overridden on the command line.</p>
<p>The following will produce a report of all the hosts a particular IP talked to:</p>
<pre><code> flow-cat ft* | flow-nfilter -F ip-src-addr -v ADDR=x.x.x.x |  flow-report -v TYPE=ip-source/destination-address</code></pre>
<ul>
<li>flow-cat ft* &#8211; displays all the netflow files in the directory</li>
<li>flow-nfilter -F ip-src-addr -v ADDR=x.x.x.x &#8211; filter out everything except the source x.x.x.x </li>
<li>flow-report -v TYPE=ip-source/destination-address &#8211; generates a ip-source/destination-address report (since we&#8217;ve only got one IP as an input to this, an ip-destination-address report might have worked just as well</li>
</ul>
<p>Another one which I&#8217;ve just used:</p>
<pre><code>flow-cat ft* | flow-nfilter -F ip-src-net -v ADDR=x.x.x.0/24 |  flow-report -v TYPE=ip-source-address -v SORT=+octets</code></pre>
<ul>
<li>flow-cat ft* &#8211; displays all the netflow files in the directory</li>
<li>flow-nfilter -F ip-src-net -v ADDR=x.x.x.0/24 &#8211; filter out everything except stuff coming from x.x.x.0/24 (this filter was created in the previous post) </li>
<li> flow-report -v TYPE=ip-source-address -v SORT=+octets &#8211; summarize on source address, and sort by octets to give the top talkers in the subnet</li>
</ul>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2009/02/19/more-command-line-netflow-reports/">More command line NetFlow reports</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2009/02/19/more-command-line-netflow-reports/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Checking common port numbers on Cisco IOS</title>
		<link>http://ccnprecertification.com/2009/01/10/checking-common-port-numbers-on-cisco-ios/</link>
		<comments>http://ccnprecertification.com/2009/01/10/checking-common-port-numbers-on-cisco-ios/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 20:25:23 +0000</pubDate>
		<dc:creator>Angel Castaneda</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/?p=130</guid>
		<description><![CDATA[While memorizing a bunch of port numbers definitely helps you impress the ladies, not everyone has that ability. Fortunately, you can check common port numbers right on the Cisco IOS command line.
Router&#62; enable
Router# conf t
Router# access-list 100 permit tcp any any eq ?

This will result in the following table:
 &#60;0-65535&#62;    Port number
bgp          Border Gateway Protocol [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2009/01/10/checking-common-port-numbers-on-cisco-ios/">Checking common port numbers on Cisco IOS</a></p>



No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>While memorizing a bunch of port numbers definitely helps you impress the ladies, not everyone has that ability. Fortunately, you can check common port numbers right on the Cisco IOS command line.</p>
<pre><code>Router&gt; enable
Router# conf t
Router# access-list 100 permit tcp any any eq ?
</code></pre>
<p>This will result in the following table:</p>
<pre><code> &lt;0-65535&gt;    Port number
bgp          Border Gateway Protocol (179)
chargen      Character generator (19)
cmd          Remote commands (rcmd, 514)
daytime      Daytime (13)
discard      Discard (9)
domain       Domain Name Service (53)
echo         Echo (7)
exec         Exec (rsh, 512)
finger       Finger (79)
ftp          File Transfer Protocol (21)
ftp-data     FTP data connections (used infrequently, 20)
gopher       Gopher (70)
hostname     NIC hostname server (101)
ident        Ident Protocol (113)
irc          Internet Relay Chat (194)
klogin       Kerberos login (543)
kshell       Kerberos shell (544)
login        Login (rlogin, 513)
lpd          Printer service (515)
nntp         Network News Transport Protocol (119)
pim-auto-rp  PIM Auto-RP (496)
pop2         Post Office Protocol v2 (109)
pop3         Post Office Protocol v3 (110)
smtp         Simple Mail Transport Protocol (25)
sunrpc       Sun Remote Procedure Call (111)
syslog       Syslog (514)
tacacs       TAC Access Control System (49)
talk         Talk (517)
telnet       Telnet (23)
time         Time (37)
uucp         Unix-to-Unix Copy Program (540)
whois        Nicname (43)
www          World Wide Web (HTTP, 80) </code></pre>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2009/01/10/checking-common-port-numbers-on-cisco-ios/">Checking common port numbers on Cisco IOS</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2009/01/10/checking-common-port-numbers-on-cisco-ios/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Netflow &#8211; Filtering on network and producing a report</title>
		<link>http://ccnprecertification.com/2008/12/29/netflow-filtering-on-network-and-producing-a-report/</link>
		<comments>http://ccnprecertification.com/2008/12/29/netflow-filtering-on-network-and-producing-a-report/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 20:20:28 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Network Management]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/?p=125</guid>
		<description><![CDATA[The last article used flow-nfilter and some variable substitution to pull out all flows to a particular address.
The next useful thing would be to pull out all flows to or from a particular network. To do so, we&#8217;ll have to define a new primitive that is a variable network/netmask, and then a filter specifying a [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2008/12/29/netflow-filtering-on-network-and-producing-a-report/">Netflow &#8211; Filtering on network and producing a report</a></p>



No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The last article used flow-nfilter and some variable substitution to pull out all flows to a particular address.</p>
<p>The next useful thing would be to pull out all flows to or from a particular network. To do so, we&#8217;ll have to define a new primitive that is a variable network/netmask, and then a filter specifying a match on stuff to or from that netmask.</p>
<p>flow-nfilter provides two primitives, the ip-address-mask and ip-address-prefix. The mask expects a traditional netmask (255.255.255.0), while the prefix expects CIDR notation (/24). I like the latter.</p>
<p>The primitive is copied from others:</p>
<pre><code>
filter-primitive VAR_PREFIX
  type ip-address-prefix
  permit @{ADDR}
</pre>
<p></code></p>
<p>The filter is then</p>
<pre><code>
filter-definition ip-addr
  match ip-destination-address VAR_PREFIX
        or
  match ip-source-address VAR_PREFIX
</pre>
<p></code></p>
<p>The "or" keyword means that either condition can be matched.</p>
<p>This filter will let you </p>
<p>The flow-report tool reads in a report definition from /etc/flow-tools/cfg/stat.cfg, and sends out a summary of the results. This tool can also summarize based on time.  Here's a report of all the conversations per 10 minute interval, sorted by number of octets:</p>
<pre><code>
stat-report talkers
  type ip-source/destination-address
  output
    sort +octets
    fields +other
    path /tmp/talkers
stat-definition talkers
  time-series 600
  report talkers
</pre>
<p></code><br />
The command line is then </p>
<pre><code>
flow-cat /var/flow-tools/ft-v05.2008-12-28.* | flow-nfilter -F ip-addr -v ADDR=172.16.128.0/17 | flow-report -S talkers
</pre>
<p></code></p>
<p>This will summarize the conversations for traffic to or from the 172.16.128.0/17 network into /tmp/talkers. A report like this could be fed into another script to generate data to be graphed, or inspected by hand to find out who was talking during the desired period.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2008/12/29/netflow-filtering-on-network-and-producing-a-report/">Netflow &#8211; Filtering on network and producing a report</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2008/12/29/netflow-filtering-on-network-and-producing-a-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netflow &#8211; a simple filter and getting connection stats</title>
		<link>http://ccnprecertification.com/2008/12/23/netflow-a-simple-filter-and-getting-connection-stats/</link>
		<comments>http://ccnprecertification.com/2008/12/23/netflow-a-simple-filter-and-getting-connection-stats/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 14:22:21 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Network Management]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/?p=112</guid>
		<description><![CDATA[Yesterday, we had a web site crash. I was curious if it had to do with load or something else was going on.  This is a great opportunity to show how to analyze NetFlow data.
First, I should mention that there may be easier ways of doing this. The flow-tools package includes a lot of [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2008/12/23/netflow-a-simple-filter-and-getting-connection-stats/">Netflow &#8211; a simple filter and getting connection stats</a></p>



No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Yesterday, we had a web site crash. I was curious if it had to do with load or something else was going on.  This is a great opportunity to show how to analyze NetFlow data.</p>
<p>First, I should mention that there may be easier ways of doing this. The flow-tools package includes a lot of tools, and I feel like I learn something new each time I use them. I also tend to use a lot of shell scripting, so I may do this a different way each time.</p>
<p>Going back to the idea of a flow, I should be able to figure out the connection rate by looking at the number of inbound flows per second. A flow is half of a conversation (see the end of an article for an exception).</p>
<p>flow-cat can take the name of a file (or files), or the name of a directory, in which case it spits out all the files in the directory. On my Internet collector, I pass &#8220;-N -1&#8243; to flow-capture to have the flows in separate directories per day (on my internal collector I don&#8217;t, go figure).</p>
<p>The first thing to do is filter my flows so that only incoming connections to the web server are caught.  The flow-nfilter command can do this.</p>
<p>/etc/flow-tools/cfg/filter.cfg contains the filters.  Some predefined ones are there for you, most notably, a &#8220;filter by destination address&#8221;:</p>
<pre><code>
filter-definition ip-dst-addr
  match ip-destination-address VAR_ADDR
</pre>
<p></code></p>
<p>This defines a filter that matches a destination address of VAR_ADDR.  But what's VAR_ADDR?  Earlier on in the file you'll see:</p>
<pre><code>
filter-primitive VAR_ADDR
  type ip-address
  permit @{ADDR:-0.0.0.0}
</pre>
<p></code></p>
<p>This primitive is an ip address, and either takes the value of ADDR, or failing that, 0.0.0.0.</p>
<p>Looking through the flow-nfilter manpage, you can set variables on the command line with -v.  So, to see only the incoming flows to the web server, you get</p>
<pre><code>
flow-cat /var/flow-tools/2008-12-22/ | flow-nfilter -F ip-dst-addr -v  ADDR=x.x.x.x | flow-print
</pre>
<p></code></p>
<p>This calls the ip-dst-addr filter and assigns x.x.x.x (the server address) to the ADDR field.</p>
<p>With a bit of shell magic, you can iterate through all the files in the directory and use the filename to write out the time, and then count the number of flows in the file: </p>
<pre><code>
for i in /var/flow-tools/2008-12-22/ft*; do echo -n $i| sed 's/.*\.\(..\)\(..\).*/\1:\2/' ; echo -n " ";  flow-cat $i| flow-nfilter  -F ip-dst-addr -v  ADDR=x.x.x.x| wc -l; done > data
</pre>
<p></code></p>
<p>I've redirected the output to a file called "data", which looks like this:</p>
<pre><code>
[root@netflow ~]# head data
00:00 9388
00:05 17850
00:10 15280
00:15 11759
00:20 14840
00:25 11018
...
</pre>
<p></code></p>
<p>The last step is to use Gnuplot to plot the data. Start by typing "gnuplot"</p>
<pre><code>
set timefmt "%H:%M"
set xdata time
set terminal png large color picsize 1200 480
set output '/var/www/html/stats.png'
plot 'data' using 1:($2/300) with linespoints
</pre>
<p></code></p>
<p>I then look at stats.png through my web browser. In this case, I went back and edited the data file to cut down on the number of datapoints around the outage, which ends up with something like:</p>
<p><img src="http://ccnprecertification.com/wp-content/uploads/2008/12/stats.png" alt="stats" title="stats" width="1200" height="480" class="alignnone size-full wp-image-122" /></p>
<p>From the graph I can see a few places where the connection rate drops which is indicative of a problem. However after that, the website is able to keep up.</p>
<h2>When is a flow not a flow?</h2>
<p>I had the command</p>
<pre><code>ip flow-cache timeout active 2</pre>
<p></code></p>
<p>in the configuration that I use. This sets the timeout of an active flow to 2 minutes. If a file transfer goes for longer than 2 minutes, the router will stop that flow and create a new one.</p>
<p>Normally, if you're using 5 minute data and you have a transfer that takes 6 minutes, the flow record will be written when the flow expires. All the transfer will look like it happened in the 6th minute, which really skews your stats. Breaking the flow up into 3 smaller flows, each about 2 minutes long, makes the effect less noticeable.</p>
<p>The flow start/stop times are always written to the flow, but often we're doing simpler analysis of the flows and don't take the time to resort the data (there's going to be a lot of it, after all!).</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2008/12/23/netflow-a-simple-filter-and-getting-connection-stats/">Netflow &#8211; a simple filter and getting connection stats</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2008/12/23/netflow-a-simple-filter-and-getting-connection-stats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Collecting NetFlow data</title>
		<link>http://ccnprecertification.com/2008/12/22/collecting-netflow-data/</link>
		<comments>http://ccnprecertification.com/2008/12/22/collecting-netflow-data/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 15:20:36 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Network Management]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/?p=100</guid>
		<description><![CDATA[In the NetFlow world, a NetFlow exporter sends flow data to a NetFlow collector. The exporter is usually a router, the collector is usually a Unix server of some sort.
First, set up your router to export flow information:
ip flow-cache timeout active 2
mls flow ip full
mls flow ipx destination
mls nde sender
mls nde interface
mls nde flow include [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2008/12/22/collecting-netflow-data/">Collecting NetFlow data</a></p>



No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>In the NetFlow world, a NetFlow exporter sends flow data to a NetFlow collector. The exporter is usually a router, the collector is usually a Unix server of some sort.</p>
<p>First, set up your router to export flow information:</p>
<pre><code>ip flow-cache timeout active 2
mls flow ip full
mls flow ipx destination
mls nde sender
mls nde interface
mls nde flow include protocol tcp
ip flow-export source GigabitEthernet1/1
ip flow-export version 5 origin-as
ip flow-export destination X.X.X.X 2055
</pre>
<p></code></p>
<p>Where X.X.X.X is the address of your NetFlow collector, and GigabitEthernet1/1 is the router's interface on that subnet.  (This was taken from a 7600 router, you may not need the NDE stuff if you're on a different platform)</p>
<p>Then, on each interface you want to capture flows for, </p>
<pre><code>ip route-cache flow</pre>
<p></code></p>
<p>You can check on the status of the export with</p>
<pre><code>ROUTER#show ip flow export
Flow export is enabled
  Exporting flows to X.X.X.X (2055)
  Exporting using source interface GigabitEthernet1/1
  Version 5 flow records, origin-as
  235556663 flows exported in 7945727 udp datagrams
  0 flows failed due to lack of export packet
  743 export packets were sent up to process level
  0 export packets were dropped due to no fib
  18425 export packets were dropped due to adjacency issues
  0 export packets were dropped due to fragmentation failures
  0 export packets were dropped due to encapsulation fixup failures
  0 export packets were dropped enqueuing for the RP
  0 export packets were dropped due to IPC rate limiting
</pre>
<p></code></p>
<p>You can immediately see some statistics now that you have NetFlow enabled:</p>
<pre><code>#show ip cache flow
IP packet size distribution (4086M total packets):
   1-32   64   96  128  160  192  224  256  288  320  352  384  416  448  480
   .001 .627 .032 .012 .020 .019 .085 .009 .001 .002 .003 .005 .006 .006 .006
    512  544  576 1024 1536 2048 2560 3072 3584 4096 4608
   .005 .004 .005 .066 .079 .000 .000 .000 .000 .000 .000
IP Flow Switching Cache, 4456704 bytes
  417 active, 65119 inactive, 235561367 added
  132171494 ager polls, 0 flow alloc failures
  Active flows timeout in 2 minutes
  Inactive flows timeout in 15 seconds
  last clearing of statistics never
Protocol         Total    Flows   Packets Bytes  Packets Active(Sec) Idle(Sec)
--------         Flows     /Sec     /Flow  /Pkt     /Sec     /Flow     /Flow
TCP-Telnet       12352      0.0        24    44      0.0       3.9      13.3
TCP-FTP          50507      0.0         1    55      0.0       0.7      14.4
TCP-FTPD         18867      0.0         1   499      0.0       0.5      15.0
TCP-WWW      158177053     36.8        17   186    627.8       3.3       8.9
TCP-SMTP        139330      0.0         1   135      0.0       0.0      15.4
TCP-X               23      0.0         2   222      0.0       1.8       9.4
TCP-BGP              2      0.0         1    64      0.0       0.0      15.7
TCP-NNTP             3      0.0         1    56      0.0       0.0      11.0
TCP-other     17276962      4.0        21   318     85.9       3.1       8.8
UDP-DNS        2866156      0.6         1    68      0.8       0.5      15.4
UDP-NTP        2082119      0.4         1    84      0.4       0.0      15.4
UDP-TFTP           137      0.0         5    49      0.0      20.4      15.5
UDP-Frag          3796      0.0     26195  1394     23.1      20.5      14.7
UDP-other     48352973     11.2        15   275    173.6      10.8      14.8
ICMP           3302490      0.7         6   165      5.0       6.5      14.8
GRE            1844456      0.4        38   137     16.7     116.5       1.1
IP-other       1433724      0.3        53    52     17.8     111.4       2.5
Total:       235560950     54.8        17   240    951.5       6.4      10.3
</pre>
<p></code></p>
<p>To collect the flows, install the flow-tools package, with either
<pre><code>yum install flow-tools</pre>
<p></code> or whatever your distribution uses (
<pre><code>apt-get install flow-tools</pre>
<p></code>), or install from <a href="http://www.splintered.net/sw/flow-tools/">source</a>.</p>
<p>The flow-capture utility is the one that is used to write the flows to disk. It must be configured with the port (2055 in our case), and a location to write the flows to.  In CentOS/RedHat/Fedora, this is done in /etc/sysconfig/flow-capture.</p>
<pre><code>OPTIONS="-n 287 -N 0 -w /var/flow-tools -S 5 0/0/2055"</pre>
<p></code></p>
<ul>
<li>-n 287: 287 files per day, or one file every 5 minutes. I recommend doing this instead of the default 15 minutes so that you have more real time access to your data, and some tools depend on this reporting interval.</li>
<li>-N 0: Don't nest the files. All the flow files will be in one directory instead of one per day. </li>
<li>-w /var/flow-tools: Write to this directory</li>
<li>-S 5: Syslog a message every 5 minutes with the collection statistics</li>
<li>0/0/2055: listen on all interfaces to all exporters on port 2055</li>
</ul>
<p>You may also want to configure something like tmpwatch in cron to clean up files (/usr/sbin/tmpwatch 720 /var/flow-tools) to only keep the last month or whatever you want. On a pipe that's used 100-200MB/sec, you can expect at least 10G of data to be logged.</p>
<p>Start flow-capture (service flow-capture start), and look for files in /var/flow-tools.</p>
<p>The files are binary, so you can't look at them directly.  To have a look at what's there:</p>
<pre><code># flow-cat /var/flow-tools/ft-v05.2008-12-22.080500-0600 | flow-print | head
srcIP            dstIP            prot  srcPort  dstPort  octets      packets
x.x.x.105      x.x.x.151        6     4511     80       744         6
x.x.x.105      x.x.x.151        6     4512     80       985         12
x.x.x.105      x.x.x.151        6     4514     80       784         7
x.x.x.105      x.x.x.185        6     4516     80       985         6
x.x.x.105      x.x.x.52         6     4517     80       1744        7
x.x.x.105      x.x.x.41         6     4518     80       850         5
x.x.x.115      x.x.x.255       17    138      138      229         1
x.x.x.252      x.x.x.62         6     2727     80       40          1
x.x.x.105      x.x.x.27         6     4521     80       2221        22
</pre>
<p></code></p>
<p>The fields should be fairly self explanatory.  The -f parameter to flow-print allows you to print out new data.</p>
<p>Coming up...  Quick and dirty ways to report on your data.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2008/12/22/collecting-netflow-data/">Collecting NetFlow data</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2008/12/22/collecting-netflow-data/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Introduction to NetFlow</title>
		<link>http://ccnprecertification.com/2008/12/20/introduction-to-netflow/</link>
		<comments>http://ccnprecertification.com/2008/12/20/introduction-to-netflow/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 16:24:10 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Network Management]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/?p=97</guid>
		<description><![CDATA[NetFlow is a technology that lets a router export information about current traffic to a collector for analysis.  The analysis might be real time, such as to detect a denial of service attack, or not real time, such as to view trending information.
NetFlow is concerned with flows, which are a one way session between [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2008/12/20/introduction-to-netflow/">Introduction to NetFlow</a></p>



No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="www.cisco.com/web/go/netflow">NetFlow</a> is a technology that lets a router export information about current traffic to a collector for analysis.  The analysis might be real time, such as to detect a denial of service attack, or not real time, such as to view trending information.</p>
<p>NetFlow is concerned with flows, which are a one way session between a source and a destination. The router is already caching information about the flow to help with the routing/switching function, NetFlow is an export of this information.</p>
<p>If you SSH to a server, that generates two flows.  One is the connection from your ephemeral port to port 22 of the server, and one from port 22 back to your ephemeral port.</p>
<p>The analysis available with NetFlow is more fine-grained than what you get with SNMP.  The flow contains the start and end time of the flow, the source and destination IP addresses and ports, the amount of data transferred, and autonomous system (AS) information (if the router is running BGP).  There are other things, such as TCP flag information, QoS tags, and optional proprietary information, but the above gives us enough to proceed.</p>
<p>I&#8217;ve been playing with NetFlow for a while and have generated various reports. Every time I do something I seem to be starting from scratch, so I&#8217;m going to formalize my work on this blog. At the moment I am working on two NetFlow related projects. The first is to figure out the breakdown of protocols over our WAN. The second is to analyze our Internet usage, analyze peering, and detect DDOS traffic patterns in near-real time, or on an ad-hoc basis.  I use the <a href="http://www.splintered.net/sw/flow-tools/">flow-tools</a> package for Linux, along with some shell/perl/ruby scripting.</p>
<p>The next post will be about setting up the environment to capture flows on the router and the Linux box.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2008/12/20/introduction-to-netflow/">Introduction to NetFlow</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2008/12/20/introduction-to-netflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Default routes</title>
		<link>http://ccnprecertification.com/2008/05/02/default-routes/</link>
		<comments>http://ccnprecertification.com/2008/05/02/default-routes/#comments</comments>
		<pubDate>Fri, 02 May 2008 14:32:13 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Routing]]></category>
		<category><![CDATA[bgp]]></category>
		<category><![CDATA[eigrp]]></category>
		<category><![CDATA[isis]]></category>
		<category><![CDATA[ospf]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/?p=96</guid>
		<description><![CDATA[The other day I ran into some problems with a default route, which prompted a discussion with co-workers, which led me to look up the behavior of redistributing a static default route into a dynamic routing protocol.
Take, for example, the following

 ! default route
 ip route 0.0.0.0 0.0.0.0 1.1.1.1
 ! pick your routing protocol
 router [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2008/05/02/default-routes/">Default routes</a></p>



No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The other day I ran into some problems with a default route, which prompted a discussion with co-workers, which led me to look up the behavior of redistributing a static default route into a dynamic routing protocol.</p>
<p>Take, for example, the following</p>
<pre><code>
 ! default route
 ip route 0.0.0.0 0.0.0.0 1.1.1.1
 ! pick your routing protocol
 router XXXXX
    redistribute static
</pre>
<p></code></p>
<p>Under what conditions will the default route make it into the routing protocol?  The docs seem to indicate that the process is automatic in EIGRP, but requires intervention in IS-IS, OSPF, and BGP.  Let's validate.</p>
<p>Take a simple network:</p>
<pre><code>
1.1.1.0/24 [R1] 2.2.2.0/24 [R2] 3.3.3.0/24 [R3]
</pre>
<p></code></p>
<p>(<a href="/wp-content/uploads/2008/3routers.net">dynagen .net</a>)</p>
<p>On R1, I have</p>
<pre><code>
router eigrp 1
 redistribute static
 network 1.0.0.0
 network 2.0.0.0
 no auto-summary
!
ip route 0.0.0.0 0.0.0.0 1.1.1.99
</pre>
<p></code></p>
<p>and over on R3</p>
<pre><code>
D*EX 0.0.0.0/0 [170/33280] via 3.3.3.1, 00:01:00, FastEthernet0/0
</pre>
<p></code></p>
<p>One thing to note is that the network statement specified 1.1.1.0 and 2.2.2.0, and not 0.0.0.0.  This is because the network statement in the EIGRP config is used to match the interfaces that EIGRP will run on, which is where the network information comes from.  network 0.0.0.0 would match both interfaces, but still would not add the default route.  The redistribute static is what causes the route to get into EIGRP (which is why it shows up in R3's routing table as D*EX)</p>
<p>In OSPF, we have on R1</p>
<pre><code>
router ospf 1
 log-adjacency-changes
 redistribute static subnets
 network 0.0.0.0 255.255.255.255 area 0
</pre>
<p></code></p>
<p>This time I used network 0.0.0.0 to save some typing.  However R3 does not see the default route. It does see another static route I put in to 9.9.9.0/24, so we know redistribution works properly.</p>
<p>The solution here is the <a href="http://www.cisco.com/en/US/tech/tk365/technologies_configuration_example09186a00801ec9f0.shtml">default-information originate</a> command.  Adding "default-information originate" to the OSPF config solves this:</p>
<pre><code>
O*E2 0.0.0.0/0 [110/1] via 3.3.3.1, 00:00:02, FastEthernet0/0
</pre>
<p></code></p>
<p>For BGP, R1 is set up as follows:</p>
<pre><code>
R1#show run | section router bgp
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 network 1.1.1.0
 network 2.2.2.0
 neighbor 2.2.2.2 remote-as 2
 no auto-summary
</pre>
<p></code></p>
<p>If I redistribute static, the default route does not show up on R2:</p>
<pre><code>
R2#show ip route bgp
     9.0.0.0/24 is subnetted, 1 subnets
B       9.9.9.0 [20/0] via 2.2.2.1, 00:00:31
</pre>
<p></code></p>
<p>At least two options exist.  1 is to do the "default-information originate" which allows the static route to be redistributed into BGP.  The other is to not redistribute, but use the network 0.0.0.0 command to advertise the default route.  In BGP, the network statement specifies the routes to be advertised, and not the interfaces like OSPF and EIGRP.</p>
<p>The difference between the two options, though, is in the BGP attributes.</p>
<pre><code>
! redistribute static and default-information originate
R2#show ip bgp 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 8
Paths: (1 available, best #1, table Default-IP-Routing-Table)
  Not advertised to any peer
  1
    2.2.2.1 from 2.2.2.1 (2.2.2.1)
      <b>Origin incomplete</b>, metric 0, localpref 100, valid, external, best
! network 0.0.0.0
R2# show ip bgp 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 12
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
  Not advertised to any peer
  1
    2.2.2.1 from 2.2.2.1 (2.2.2.1)
     <b>Origin IGP</b>, metric 0, localpref 100, valid, external, best
</pre>
<p></code></p>
<p>The difference here is that advertising a local network marks the origin as IGP, but a redistribution marks it as incomplete.  Look at step 5 of the <a href="http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094431.shtml#bestpath">BGP best path selection algorithm</a> to see that IGP is preferred over incomplete (even though by the time origin is compared, weight, local preference, and AS_PATH length have already been compared)</p>
<p>So, the moral of the story is to watch how your default routes go into your routing protocol, because depending on the protocol, it's handled differently.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2008/05/02/default-routes/">Default routes</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2008/05/02/default-routes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;ll be speaking at Sharkfest &#8216;08</title>
		<link>http://ccnprecertification.com/2007/12/25/ill-be-speaking-at-sharkfest-08/</link>
		<comments>http://ccnprecertification.com/2007/12/25/ill-be-speaking-at-sharkfest-08/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 18:31:28 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/2007/12/25/ill-be-speaking-at-sharkfest-08/</guid>
		<description><![CDATA[(cross posted from my blog) 
I&#8217;m giving 2 talks on using Wireshark to expose VoIP problems at Sharkfest &#8216;08 (schedule).  Details are sketchy, I think one of the talks is more of a hands on lab, the other is me talking.  I&#8217;ve expanded on my techniques from the Linux Journal article I wrote [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2007/12/25/ill-be-speaking-at-sharkfest-08/">I&#8217;ll be speaking at Sharkfest &#8216;08</a></p>



No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>(cross posted from <a href="http://ertw.com/blog/2007/12/25/ill-be-speaking-at-sharkfest-08/">my blog</a>) </p>
<p>I&#8217;m giving 2 talks on using Wireshark to expose VoIP problems at <a href="http://www.cacetech.com/SHARKFEST.08/">Sharkfest &#8216;08</a> (<a href="http://www.cacetech.com/SHARKFEST.08/Conf_Sched-122107jas.pdf">schedule</a>).  Details are sketchy, I think one of the talks is more of a hands on lab, the other is me talking.  I&#8217;ve expanded on my techniques from the Linux Journal article I wrote on the topic.</p>
<p>Some other fascinating topics going on at the same conference, especially wireless analysis and performance monitoring.  Hope to see you there.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2007/12/25/ill-be-speaking-at-sharkfest-08/">I&#8217;ll be speaking at Sharkfest &#8216;08</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2007/12/25/ill-be-speaking-at-sharkfest-08/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using a 3750 to test cables</title>
		<link>http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/</link>
		<comments>http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 05:15:18 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/</guid>
		<description><![CDATA[The 3750 (and it would appear, the 3560s, 4500s, and 6500s) have an integrated Time Domain Reflector which is used to test cables associated with a port.
http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_25_see/command/reference/cli3.html#wp2168243
Today I was troubleshooting a problem at a newly renovated remote office with an IP phone that would power up but not boot.  After swapping cables and phones, [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/">Using a 3750 to test cables</a></p>



No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The 3750 (and it would appear, the 3560s, 4500s, and 6500s) have an integrated Time Domain Reflector which is used to test cables associated with a port.</p>
<p>http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_25_see/command/reference/cli3.html#wp2168243</p>
<p>Today I was troubleshooting a problem at a newly renovated remote office with an IP phone that would power up but not boot.  After swapping cables and phones, I remembered the TDR and tried it out:</p>
<pre><code>Switch# test cable-diagnostics tdr interface g1/0/14
TDR test started on interface Gi1/0/14
A TDR test can take a few seconds to run on an interface
Use 'show cable-diagnostics tdr' to read the TDR results.
Switch#show cable-diagnostics tdr  interface gigabitEthernet 1/0/14
TDR test last run on: March 04 22:31:09

Interface Speed Local pair Pair length        Remote pair Pair status
--------- ----- ---------- ------------------ ----------- --------------------
Gi1/0/14  auto  Pair A     19   +/- 4  meters N/A         Open
                Pair B     4    +/- 4  meters N/A         Open
                Pair C     20   +/- 4  meters N/A         Open
                Pair D     20   +/- 4  meters N/A         Open
</pre>
<p></code></p>
<p>Looks like a problem on Pair B!  You should have heard the suprise from the (telecom) guy on the other end of the line when I finally said "looks like a problem in the cabling, get the contractor to check pair B.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/">Using a 3750 to test cables</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
