<?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 &#187; Network Management</title>
	<atom:link href="http://ccnprecertification.com/category/network-management/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>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>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>
	</channel>
</rss>
