<?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>Andryan's Random Notes &#187; BGP</title>
	<atom:link href="http://blog.nirkabel.org/category/bgp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nirkabel.org</link>
	<description>This blog is here to stay</description>
	<lastBuildDate>Fri, 20 Jan 2012 03:17:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MikroTik RouterOS &#8212; BGP</title>
		<link>http://blog.nirkabel.org/2007/05/04/mikrotik-routeros-bgp/</link>
		<comments>http://blog.nirkabel.org/2007/05/04/mikrotik-routeros-bgp/#comments</comments>
		<pubDate>Fri, 04 May 2007 04:04:54 +0000</pubDate>
		<dc:creator>Andryan</dc:creator>
				<category><![CDATA[BGP]]></category>
		<category><![CDATA[MikroTik]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[RouterOS]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://andryan.wordpress.com/2007/05/04/mikrotiks-routeros-bgp/</guid>
		<description><![CDATA[I have always wanted to learn about BGP. This time I got the honor chance to implement BGP for an ISP. This ISP has its own AS number and a /21 IP address block. This BGP setup is pretty simple because I&#8217;m only using 1 PC (with 3 ethernet cards and a MikroTik&#8217;s level 4 [...]]]></description>
			<content:encoded><![CDATA[<p>I have always wanted to learn about <a href="http://en.wikipedia.org/wiki/Border_Gateway_Protocol" title="Border Gateway Protocol" target="_blank">BGP</a>. This time I got the <strike>honor</strike> chance to implement BGP for an ISP. This ISP has its own <a href="http://en.wikipedia.org/wiki/Autonomous_system_%28Internet%29" title="Autonomous System" target="_blank">AS</a> number and a /21 IP address block. This BGP setup is pretty simple because I&#8217;m only using 1 PC (with 3 ethernet cards and a MikroTik&#8217;s level 4 DOM) to interconnect with an Internet Exchange (IX) &#8212; <a href="http://www.openixp.net/" title="OpenIXP" target="_blank">NiCE</a> &#8212; and a transit ISP (another transit will be added soon).</p>
<p>In MikroTik RouterOS version 2.9.42, BGP features are available for level 3 and above. You also need to enable <i>routing-test</i> package if you want more flexibility (BGP filtering features). The <i>routing</i> package, as of this version, only allows basic BGP features. I&#8217;m sure this will change later when they release RouterOS v3. Once you have enabled <i>routing-test</i> package, you will see new options (<b>Routing &#8211; Filters</b> in winbox, or <b>/routing filters</b> on CLI). This is very important when you have to peer with 2 or more ASes (specifically an IX and a transit which is not interested in getting IX&#8217;s routes for obvious reasons).</p>
<p>Since I have never configured BGP before, I caused a major problem when routes from each peer goes to another peer when they shouldn&#8217;t! I didn&#8217;t place any filter for BGP advertisements my BGP router sends to its peers. My transit ISP received the IX&#8217;s routes and the IX received full Internet routes feed my BGP router gets from the transit ISP. BGP is an exterior distance-vector routing protocol, it picks its best path by comparing the AS path lengths of every route it has. Advertising the whole Internet BGP feed to the local IX caused other ISPs&#8217; routers participating in the IX to discover a shorter path of international routes going via my BGP router so the routers chose this new shorter path instead and outgoing traffic of these ISPs started to flow via my transit ISP! On the other hand, advertising IX routes to my transit was not a big problem since the path will be farther for their customers anyway, having to go via my BGP router first (that&#8217;s one AS further for the transit ISP&#8217;s customers to reach the IX routes, so BGP will not select it).</p>
<p>Fortunately I was able to spot the error immediately and placed BGP routing filters to include only my /21 IP block in the advertisements my BGP router sends to both the IX and transit. I also added an incoming BGP filter to discard a default route my transit IP includes in its BGP feed. This default route is not required since I get full BGP feed that is unfiltered.</p>
<p>Useful links:<br />
<a href="http://www.mikrotik.com/testdocs/ros/2.9/routing/bgp.php" target="_blank">http://www.mikrotik.com/testdocs/ros/2.9/routing/bgp.php</a><br />
<a href="http://www.mikrotik.com/testdocs/ros/2.9/routing/filter.php" target="_blank">http://www.mikrotik.com/testdocs/ros/2.9/routing/filter.php</a><br />
<a href="http://wiki.mikrotik.com/wiki/BGP_Case_Studies_1" target="_blank">http://wiki.mikrotik.com/wiki/BGP_Case_Studies_1</a> &#8212; Route filters examples<br />
<a href="http://wiki.mikrotik.com/wiki/Using_scope_and_target-scope_attributes" target="_blank">http://wiki.mikrotik.com/wiki/Using_scope_and_target-scope_attributes</a> &#8212; Important! Make sure that BGP neighbors are reachable via static routes for dynamic routes to be active (in the case of multihop BGP neighbors)<br />
<a href="http://wiki.mikrotik.com/wiki/BGP_soft_reconfiguration_alternatives_in_RouterOS" target="_blank">http://wiki.mikrotik.com/wiki/BGP_soft_reconfiguration_alternatives_in_RouterOS</a><br />
<a href="http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/12cgcr/np1_c/1cprt1/1cbgp.htm" target="_blank"> Cisco&#8217;s BGP Reference</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nirkabel.org/2007/05/04/mikrotik-routeros-bgp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Internet Statistics (ASN, BGP, etc)</title>
		<link>http://blog.nirkabel.org/2006/01/23/internet-statistics-asn-bgp-etc/</link>
		<comments>http://blog.nirkabel.org/2006/01/23/internet-statistics-asn-bgp-etc/#comments</comments>
		<pubDate>Mon, 23 Jan 2006 17:55:14 +0000</pubDate>
		<dc:creator>Andryan</dc:creator>
				<category><![CDATA[BGP]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://andryan.wordpress.com/2006/01/23/internet-statistics-asn-bgp-etc/</guid>
		<description><![CDATA[FixedOrbit provides comprehensive information regarding ASs. Very useful to determine/verify an ISP&#8217;s uplinks/peers. Shows some statistics on IP assignment/allocation as well as the major ISPs with best uplinks. UPDATE: I believe FixedOrbit does not serve up-to-date information, but cidr-report does.]]></description>
			<content:encoded><![CDATA[<p align="left"><a href="http://www.fixedorbit.com/" target="_blank">FixedOrbit</a> provides comprehensive information regarding ASs. Very useful to determine/verify an ISP&#8217;s uplinks/peers.<br />
Shows some statistics on IP assignment/allocation as well as the major ISPs with best uplinks.</p>
<p>UPDATE: I believe FixedOrbit does not serve up-to-date information, but <a href="http://www.cidr-report.org/" title="cidr-report.org" target="_blank">cidr-report</a> does.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nirkabel.org/2006/01/23/internet-statistics-asn-bgp-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

