<?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>BGPmon</title>
	<atom:link href="http://www.bgpmon.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bgpmon.net</link>
	<description>BGPmon</description>
	<lastBuildDate>Sat, 30 Mar 2013 06:14:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Looking at the spamhaus DDOS from a BGP perspective</title>
		<link>http://www.bgpmon.net/looking-at-the-spamhouse-ddos-from-a-bgp-perspective/</link>
		<comments>http://www.bgpmon.net/looking-at-the-spamhouse-ddos-from-a-bgp-perspective/#comments</comments>
		<pubDate>Sat, 30 Mar 2013 01:20:05 +0000</pubDate>
		<dc:creator>Andree Toonk</dc:creator>
				<category><![CDATA[BGP instability]]></category>
		<category><![CDATA[Hijack]]></category>

		<guid isPermaLink="false">http://www.bgpmon.net/?p=1057</guid>
		<description><![CDATA[It’s been a busy week for network engineers world wide, rerouting around broken optical links and of course the 300Gb/s DDOS attack towards Spamhaus and Cloudflare. This DDOS has been classified as the largest DDOS attack ever recorded and has been written about quite a bit in mainstream media. There’s been a bit of discussion [...]]]></description>
				<content:encoded><![CDATA[<p>It’s been a busy week for network engineers world wide, rerouting around broken optical links and of course <a href="http://www.nytimes.com/2013/03/27/technology/internet/online-dispute-becomes-internet-snarling-attack.html" target="_blank">the 300Gb/s DDOS attack towards Spamhaus and Cloudflare</a>. This DDOS has been classified as the <a href="http://www.arbornetworks.com/corporate/blog/4813-putting-the-spamhouse-ddos-attack-in-perspective" target="_blank">largest DDOS attack ever recorded</a> and has been written about quite a bit in mainstream media.</p>
<p>There’s been a bit of discussion about how much this DDOS actually slowed down the Internet globally. Fact is that the Internet didn’t come to a halt but the large amount of new traffic that had to be handled by some of the carriers did result in congestion and significant packet loss by some of the Tier1 carriers last weekend. In this blog post we’ll look at this event from the routing perspective, what effects did this have on the Internet Exchanges and we’ll also look at some BGP hijacks related to this attack.</p>
<p><strong>BGP hijack affecting Spamhause</strong><br />
The majority of the attack towards SpamHaus and cloudflare was a brute-force DDOS of attack. But in an attempt to affect spamhause services different techniques were used, one of them was a BGP hijack by the alleged initiator of the attack. Greenhost.nl has a great description on <a href="https://greenhost.nl/2013/03/21/spam-not-spam-tracking-hijacked-spamhaus-ip/ " target="_blank">their blog</a> about how AS34109 Cyberbunker/CB3Rob (the alleged organizer of the spamhause attack), announced a more specific route for one of the spamhaus servers: <em>0.ns.spamhaus.org</em> with IP address 204.16.254.40/32.</p>
<p><img class="alignleft size-large wp-image-1060" title="Screen Shot 2013-03-29 at 5.12.39 PM" src="http://www.bgpmon.net/wp-content/uploads/2013/03/Screen-Shot-2013-03-29-at-5.12.39-PM-1024x308.png" alt="" width="411" /></p>
<p>As this was a more specific route everyone receiving this route would have routed to the Cyberbunker server where each spamhaus query was then reported as a spammer.</p>
<p>Cyberbunker/CB3Rob announced this prefix on the <a href="http://www.nl-ix.net/" target="_blank">NL-IX</a> an Internet Exchange in the Netherlands. This means that networks that peer with 34109 on the NLIX would have received this prefix and most likely used this “fake” spamhaus server.<br />
It’s obvious that an attack like this takes very little resources (as compared to the large scale DDOS) and can be very effective.</p>
<p>When we look at the history of AS34109 and AS51787, both assigned to Cyberbunker, we see that there were previous BGP incidents. We recorded two recent incidents during which AS34109 announced prefixes that are not assigned to them (Hijack). On January 9 AS34109 briefly announced <em>205.189.74.0/24</em> and between March 7 and March 21 the prefix <em>205.19.72.0/23</em> was announced by AS34109. This prefix is assigned to the US department of Defense and normally not announced to the Internet. It’s currently listed  in spamhaus so it’s likely that this prefix was used to send spam.</p>
<p>Cyberbunker prefixes have also been on the other side of the story, on February 6th some of their IP addresses in the 84.22.106.0/24 range were announced as /32’s inside the TATA communications (AS6453) network most likely because these were being null routed by TATA.</p>
<p><strong>Internet Exchange point route announcements</strong><br />
One of the things that made this attack unique as compared to previous DDOS attacks was that the attackers decided to attack critical Internet infrastructure such as Internet Exchange points that are used by cloudflare and its upstream providers. This allowed the attacker to bypass the Anycast infrastructure of Cloudflare and focus the attack towards a limited set of devices resulting in a lot of  (new) traffic towards a very specific point on the Internet.</p>
<p>Normally these addresses used on the Exhange points should not be globally reachable or at least do it in such a way that it can easily be controlled and withdrawn. This is done specifically to prevent attacks towards the Internet Exchanges. Unfortunately this was not the case for two of the major Internet Exchanges in London, which was one of the reasons why these attacks towards the cloudflare routers was so intrusive.<br />
Looking at the BGP data for the last few days we can see that both London Internet exchanges have now de-aggregated their announcements so that it’s easier to control announcements for the peering networks in London. Now all that remains is stopping members from announcing this prefix.</p>
<p>This week we’ve seen that DDOS are a big problem on the Internet and it’s unlikely this will go away any time soon, in fact the volume just keeps growing. This event also showed that DDOS can sometimes hide other attacks, as DDOS are very visible and intrusive it will typically get the attention of network and security engineers with the risk that it can be used to hide other forms of attacks such as intrusion attempt and in this case BGP hijacks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bgpmon.net/looking-at-the-spamhouse-ddos-from-a-bgp-perspective/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Accidentally stealing the Internet</title>
		<link>http://www.bgpmon.net/accidentally-stealing-the-internet/</link>
		<comments>http://www.bgpmon.net/accidentally-stealing-the-internet/#comments</comments>
		<pubDate>Tue, 08 Jan 2013 14:47:36 +0000</pubDate>
		<dc:creator>Andree Toonk</dc:creator>
				<category><![CDATA[Hijack]]></category>
		<category><![CDATA[News and Updates]]></category>

		<guid isPermaLink="false">http://www.bgpmon.net/?p=1029</guid>
		<description><![CDATA[Just a few days ago we learned  about an incident involving a mis-issued SSL certificate that was used in a Man in the Middle attack to intercept Gmail data. In this blog post we’ll talk about how Man in the Middle (MITM) attacks work and we’ll look at recent BGP MITM event that caused traffic [...]]]></description>
				<content:encoded><![CDATA[<p>Just a few days ago we learned  about an incident involving a mis-issued SSL certificate that was used in a Man in the Middle attack to intercept Gmail data. In this blog post we’ll talk about how Man in the Middle (MITM) attacks work and we’ll look at recent BGP MITM event that caused traffic for some major networks such as Microsoft and Facebook to be redirected to an ISP in France. </p>
<p><strong>Certificate authorities and SSL</strong><br />
Just as the DigiNotar storm seemed to have calmed down, Google announced they discovered, yet another Certificate Authority that was involved in a similar incident. TURKTRUST, a certificate authority, mis-issued two intermediate certificates that were later used to intercept SSL traffic to Gmail. In cases like this the attacker is interested in intercepting communication between Gmail users and the Gmail servers. In order to successfully execute such an attack the attacker will need to insert his fake Gmail impersonating webserver between the user and the actual Gmail servers, this is what we call a Man in the Middle Attack, sometimes referred to as MITM.<br />
The challenge here is: how do you get the user to send traffic to your fake server instead of to the real Gmail servers? One common way of achieving this is to have some kind of interception appliance on the edge of the network. But what if you don’t have control of the network where the user resides? Perhaps the users the attacker is interested in are in a different country or even a different continent.</p>
<p><strong>DNS</strong><br />
If you could just somehow change the DNS response for Gmail.com to point to your server instead of the real Gmail server then users will go to the IP address of the fake Gmail server and because that has an SSL certificate that is recognized as valid by the browsers it won&#8217;t generate any warnings.<br />
Over the last few years we’ve seen viruses such as <a href="http://en.wikipedia.org/wiki/DNSChanger" target="_blank">DNSCHANGER</a> change the DNS server settings to DNS servers that are controlled by an attacker. Other ways to achieve this are DNS cache poisoning attacks.<br />
Both methods have <a href="http://www.theregister.co.uk/2009/04/22/bandesco_cache_poisoning_attack/" target="_blank">been used</a> quite extensively over the last few years and because the way DNS is used today by the vast majority of the users (non DNSSEC clients) on the Internet there’s no way to verify if an DNS response is correct. This makes it relatively easy to insert fake DNS responses.</p>
<p><strong>BGP MITM</strong><br />
One other way to redirect traffic from the user to the attacker is to go lower in the network stack and try to fool the routing system. BGP is the routing protocol of choice on the Internet today and since it’s largely based on trust, it’s relatively easy to fool the system. For example, if the attacker is able to announce a more specific route for the Gmail address range (IP prefix) and it’s picked up by the major transit providers, Internet users will be redirected to the attackers. It’s obvious that the potential impact of this is much bigger than let’s say DNS cache poisoning as that tends to be more localized.  Incidents like this happen relatively often by mistake, just take a look at our blog were we’ve published several high profile prefix hijack incidents over the last few years. It’s important to note that most of these cases are the result of configuration mistakes and most of the times it’s relatively easy to determine who hijacked the route. But what if an attacker could just somehow launch a man in the middle attack using BGP that’s much harder to detect and still allows the attacker to redirect traffic globally…?</p>
<p><strong>Stealing the Internet.</strong><br />
This exact use case was presented a few years back at <a href="https://www.defcon.org/" target="_blank">Defcon16</a> in a presentation titled <a href="http://youtu.be/S0BM6aB90n8" target="_blank">&#8220;Stealing The Internet, An Internet-Scale Man In The Middle Attack&#8221;</a>.<br />
During this presentation the presenters, Tony Kapela and Alex Pilosov, demonstrated how one can launch a Man in The Middle (MITM) attack using BGP and redirect traffic for any destination from any location in the world by just introducing some new BGP announcements while staying relatively stealthy.</p>
<p><strong>A recent Real Life BGP Man in the middle Event</strong><br />
Earlier in this article we stated that (accidental) BGP hijacks are relatively common, BGP MITM attacks however are rare and harder to detect. Having said that, our software does have logic to detect this kind of attack and last week we noticed a sudden increase in BGP MITM alerts being triggered for many prefixes including those of large networks such as France Telecom, Facebook and Microsoft. Let’s dig a bit deeper into this specific case and try to find out what exactly happened.</p>
<p>The following is an example alert and provides us with a starting point.<br />
<a href="http://www.bgpmon.net/wp-content/uploads/2013/01/Screen-Shot-2013-01-06-at-2.58.14-PM.png"><img class="alignleft  wp-image-1030" title="BGP Man In the Middle " src="http://www.bgpmon.net/wp-content/uploads/2013/01/Screen-Shot-2013-01-06-at-2.58.14-PM-1024x580.png" alt="" width="717" height="406" /></a><br />
&nbsp;</p>
<p><strong>Finger printing Man in The middle Attacks</strong><br />
A BGP MITM attack as demonstrated at Defcon16 has the following properties: the BGP announcement is for a new more specific prefix and when looking at the ASpath closely we see AS relations that are typically not correct (fake) and most likely partially spoofed. Obviously this type of attack can be tuned, so the fingerprint may vary depending on the intent and creativity of the attacker.</p>
<p><strong>Finding the root cause of this BGP MITM event</strong>.<br />
With the above finger print in mind and numerous alerts helping us focusing in on the rather large data set, we started to dig deeper and tried to determine what exactly had happened here.<br />
One of the clues we have when troubleshooting BGP is the ASpath. By looking at the ASpath we can say who originated the prefixes, which network provides transit to the originator and how does the path to the eventual receiver of the BGP update look like.</p>
<p>Let’s take a look at one of the affected prefixes and an ASpath for this prefix.<br />
<code>271 6939 35625 6453 3215</code><br />
A quick look at this path might not show anything strange, however when looking a bit more closely at this ASpath there are a few things that don’t add up.</p>
<p>In this case we know that originator of the prefix, AS3215 France Telecom, does not have a direct peering/transit relationship with Tata (AS6453). This relationship does however show up in the ASpath. The other thing to note is that the ASpath shows that AS35625 (Avenir Telematique) is receiving the route from Tata (6453)(originated by France Telecom, 3215) and then announcing it to HE AS6939 (a peer of 35625) which then announces it to its customers. This means that 35625 (Avenir Telematique) is providing transit for 6453 3215 towards 6939 (Hurricane Electric). Given the size of both Tata (AS6453) and Hurricane Electric (AS6939), AS35625 should never be in the middle of these two.</p>
<p>So to summarize, the reason this update was marked as suspicious and eventually as a possible man in the middle attack is because it was a new more specific, the ASpath is suspicious as it contains non-existing relationships and one AS is leaking between two large providers. Our software has a few other checks and balances in place to prevent false alerts, but this pretty much sums up why it was flagged as suspicious.</p>
<p><strong>Putting the pieces together</strong><br />
When looking closer at the ASpaths for all the events that were flagged as possible MITM we found that all ASpaths had one Autonomous System in common, AS35625  (Avenir Telematique), the same AS that appeared to have leaked the announcement to HE. At that point we focused our attention on this Autonomous System and we presumed that AS35625 was the one introducing these new announcements including the fake ASpaths.</p>
<p>After contacting the team responsible for AS35625 our suspicions were confirmed. As it turned out AS35625 has a “route optimizer” appliance that changes and introduces new BGP announcements, by breaking up prefixes in more specifics and altering the ASpath. All this is done in order to improve reachability and latency. Obviously these announcements are supposed to stay within the boundaries of the autonomous system, but in this case they were leaked to many of its peers.</p>
<p><strong>Impact</strong><br />
If we look at the impact and affected networks we see that the number of prefixes that match the fingerprint was 418 unique prefixes of 133 unique Autonomous systems, including Facebook, Microsoft, Cogent, Bell Canada, Verizon, Level3, Shaw, Tata, Comcast, Yahoo, Verisign and many more, <a title="List of affected networks" href="http://portal.bgpmon.net/data/bgpmitm-dec28.txt">see full list here</a>. The total event lasted for about 30 minutes, although it should be noted that the impact varied per prefix and peering partner.</p>
<p>The new more specific prefixes were announced to numerous peers of AS35625, we detected it via approximately 50 direct peers of AS35625, most notably via AS6327 (Shaw Cablesystems) and AS6939, Hurricane Electric.<br />
As these are more specific prefixes it’s fair to assume that networks that received the BGP update for the affected prefixes, including the large customer base of both Hurricane Electric and Shaw would have rerouted traffic for some of the 400 prefixes towards AS35625 in France for several minutes.<br />
In this case the only thing that limited the impact and prevented more prefixes to be affected were &#8220;max prefix filters&#8221; on the peering connections. In the case of Hurricane Electric the impact was limited to ~80 prefixes.</p>
<p>This event demonstrates how easy it is to accidentally steal parts of the Internet, and it make you wonder what could be done if an attacker would carefully plan and execute such an attack (would it be detected?).<br />
It’s obvious that once an attacker has access to a Certificate Authority and can issue seemingly valid SSL certificates at will, there are numerous options for redirecting traffic. The event described in this blog show how BGP can help attackers redirect traffic for any network in the world, while staying relatively stealthy.<br />
All this demonstrates the fragility of the current routing, CA and DNS system. The good news is that new technologies are currently underway to make the Internet more secure, DNSSEC, DANE and RPKI &amp; BGPSEC are all technologies to make these the Internet infrastructure more secure, the bad news is that most of these technologies lack significant deployment or are still in the standardization phase.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bgpmon.net/accidentally-stealing-the-internet/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Syria shuts down the Internet</title>
		<link>http://www.bgpmon.net/syria-shuts-down-the-internet/</link>
		<comments>http://www.bgpmon.net/syria-shuts-down-the-internet/#comments</comments>
		<pubDate>Thu, 29 Nov 2012 17:57:28 +0000</pubDate>
		<dc:creator>Andree Toonk</dc:creator>
				<category><![CDATA[BGP instability]]></category>

		<guid isPermaLink="false">http://www.bgpmon.net/?p=1000</guid>
		<description><![CDATA[As of 10:27 UTC this morning the majority of the Internet in Syria is no longer connected to the rest of the world and can be considered as offline. Syria has only one major provider, AS29256 The Syrian Telecommunications Establishment. This provider is government owned and originates 56 out of 62 Syrian prefixes. This morning between [...]]]></description>
				<content:encoded><![CDATA[<p>As of 10:27 UTC this morning the majority of the Internet in Syria is no longer connected to the rest of the world and can be considered as offline. Syria has only one major provider, AS29256 The Syrian Telecommunications Establishment. This provider is government owned and originates 56 out of 62 Syrian prefixes.</p>
<p><a href="http://www.bgpmon.net/syria-shuts-down-the-internet/syria-offline-nov29-2012/" rel="attachment wp-att-1007"><img class="alignnone size-large wp-image-1007" title="Syria offline nov29 2012" src="http://www.bgpmon.net/wp-content/uploads/2012/11/Syria-offline-nov29-2012-1024x390.png" alt="" width="620" /></a></p>
<p>This morning between 10:26 and 10:27 all routes originated by AS29256 (The Syrian Telecommunications Establishment) were withdrawn and became unreachable.<br />
The only Syrian prefixes left in the routing table are 5 prefixes originated by TATA, AS6453. These are the prefixes that are still reachable via TATA:<br />
216.6.0.0/23, 63.243.163.0/24, 116.0.72.0/22, 66.198.39.0/24, 66.198.41.0/24</p>
<p><strong>What happened?</strong><br />
We have no official confirmation about what happened, but similar events in the past [<a title="Internet Syria offline" href="http://www.bgpmon.net/internet-syria-offline/" target="_blank">Syria</a>, <a title="Internet in Egypt offline" href="http://www.bgpmon.net/egypt-offline/" target="_blank">Egypt</a>] were all government ordered. Because the primary telecom provider is state controlled in Syria, an outage like this is relatively easy to implement by ordering the primary telecom provider to shutdown the external links or BGP sessions with the external providers. External providers that provide services to Syria are:<br />
AS9121 Turk Telecom<br />
AS6762 telecom Italia<br />
AS3491 PCCW Global<br />
AS6453 Tata<br />
<strong>Not the first outage</strong></p>
<div id="attachment_1017" class="wp-caption alignright" style="width: 310px"><a href="http://www.bgpmon.net/syria-shuts-down-the-internet/syria-offline-nov25-2012/" rel="attachment wp-att-1017"><img class="size-medium wp-image-1017" title="Syria offline nov25-2012" src="http://www.bgpmon.net/wp-content/uploads/2012/11/Syria-offline-nov25-2012-300x159.png" alt="" width="300" height="159" /></a><p class="wp-caption-text">Brief country wide outage earlier this week</p></div>
<p>Our historical data shows that Syria had an outage of similar scale earlier this week on November 25th at 08:46 when it lost the same number of prefixes for ~10minutes.<br />
This might have been a test run, or perhaps more likely indicate that the outage is the result of damage to the physical infrastructure( optical fiber, radio links, routers, data centres, power) that makes the Internet work in Syria .</p>
<p><strong>Update Fri 30 Nov 2012 02:15 UTC</strong><br />
The last 5 remaining Syrian prefixes originated by TATA are down as of 23:45 UTC. Syria is now 100% offline!<a id="signoflife"></a></p>
<p><strong>Brief sign of life<br />
</strong>There was a brief sign of life from the Syrian prefixes announced by TATA (AS6453). BGP updates for these prefixes were briefly seen between 15:50 and 15:52 as well as between 17:39 and 17:43, UTC times on November 30th. </p>
<p>A brief restoration of power could be one reason for this short sign of life.<a id="backonline"></a></p>
<p><strong>Back Online (Dec 1st, 14:32)</strong><br />
Internet connectivity to Syria has been returned and all Syrian prefixes are now back online. Connectivity was restored at 14:32 UTC (Dec 1st) via AS3491 PCCW Global,  AS6453 Tata and AS6762 telecom Italia.<br />
About 1,5 hours later at 15:58 Syria’s connection with Turk Telecom was also re-established.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.bgpmon.net/syria-shuts-down-the-internet/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>New version of BGPmon.net</title>
		<link>http://www.bgpmon.net/new-version-of-bgpmon-net/</link>
		<comments>http://www.bgpmon.net/new-version-of-bgpmon-net/#comments</comments>
		<pubDate>Wed, 03 Oct 2012 13:35:46 +0000</pubDate>
		<dc:creator>Andree Toonk</dc:creator>
				<category><![CDATA[BGPmon.net]]></category>
		<category><![CDATA[News and Updates]]></category>

		<guid isPermaLink="false">http://www.bgpmon.net/?p=964</guid>
		<description><![CDATA[As many of you are aware, BGPmon.net has been offered as a free service since becoming publically available in 2008. From its inception the service has been funded largely by myself. Now, due to ever-increasing popularity, it has become unsustainable to run the service on personal funds and my available time. I have reached a [...]]]></description>
				<content:encoded><![CDATA[<p>As many of you are aware, BGPmon.net has been offered as a free service since becoming publically available in 2008. From its inception the service has been funded largely by myself. Now, due to ever-increasing popularity, it has become unsustainable to run the service on personal funds and my available time. I have reached a branch in the road: BGPmon.net must either become financially self-supporting, reduce its scope or cease. Clearly the latter options would waste the project&#8217;s potential and accomplishments. </p>
<p>So I&#8217;m happy to announce that as of today BGPmon.net services will be available in two flavors: a free &#8216;entry level&#8217; service and a full-featured premium commercial service. </p>
<p>With these changes, BGPmon.net will become more sustainable and provide better support, and allow us to continue improving services while adding new features. </p>
<p><strong>What to expect</strong><br />
Our base services remain free, but with a limited feature set and up to 5 prefixes per account. </p>
<p>The premium commercial service allows you to monitor as many prefixes as needed and provides the full-feature set on a new powerful platform. The routing report, SOAP API and additional email address features are now part of the premium service. Pricing details can be found in the new client portal. </p>
<p>Please note that your current account has been converted to a basic account. Login into our new portal to see what this means for you and to make changes to the list of prefixes. </p>
<p>We included many changes in this new release. Recent upgrades include our new website, PeerMon, the improved API, the new portal and full RPKI support.</p>
<p>I&#8217;d like to thank all of you for your continued support and encouragement over the last few years. I hope our new service offering will meet your needs and will help strengthen BGPMon.net for the years ahead.</p>
<p><strong><em><a href="http://www.youtube.com/embed/Qlt6WD4LEKY?hd=1">Introduction into the new BGPmon client porta</a>l</em></strong><br />
<iframe width="560" height="315" src="http://www.youtube.com/embed/Qlt6WD4LEKY?hd=1" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bgpmon.net/new-version-of-bgpmon-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A BGP leak made in Canada</title>
		<link>http://www.bgpmon.net/a-bgp-leak-made-in-canada/</link>
		<comments>http://www.bgpmon.net/a-bgp-leak-made-in-canada/#comments</comments>
		<pubDate>Wed, 08 Aug 2012 21:41:59 +0000</pubDate>
		<dc:creator>Andree Toonk</dc:creator>
		
		<guid isPermaLink="false">http://bgpmon.net/blog/?p=622</guid>
		<description><![CDATA[A BGP leak made in Canada Today many network operators saw their BGP session flap, RTT’s increase and CPU usage on routers spike.  While looking at our BGP data we determined the root cause to be a large BGP leak in Canada that quickly affected networks worldwide. Dery Telecom Based on our analysis it seems [...]]]></description>
				<content:encoded><![CDATA[<p><em><strong>A BGP leak made in Canada</strong></em></p>
<p>Today many network operators saw their BGP session flap, RTT’s increase and CPU usage on routers spike.  While looking at our BGP data we determined the root cause to be a large BGP leak in Canada that quickly affected networks worldwide.</p>
<p><strong>Dery Telecom<br />
</strong>Based on our analysis it seems that Canadian ISP Dery Telecom Inc (AS46618) is the cause of what we observed today. AS46618 is dual homed to both VIDEOTRON and Bell. What seems to have happened is that AS46618 leaked routes learned from VIDEOTRON to Bell. This in itself is not unique and happens relatively often. However normally transit ISP’s like Bell have strict filters applied on these BGP sessions, limiting the number of prefixes they accept from their customers. In this case the filter failed to work or simply wasn’t (correctly) applied by both Bell and Dery Telecom.</p>
<p><strong>Sequence of events</strong><br />
At 17:27 UTC  AS46618 ( Dery Telecom Inc) started to leak a &#8216;full table&#8217;, or at least a significant chunk of it to its provider Bell AS577. Bell selected 107,409 of these routes as best routes. Even though many of the ASpaths were much longer than other alternatives it was preferred because many ISP’s localpref customers higher than other peers and transit providers, so as a result customer routes are always preferred even when the ASpath is longer.</p>
<p>Bell then propagated the learned prefixes to its peers. Tata was one of the ones that accepted and used the bulk of these prefixes and re-announce these to its peers and customers.</p>
<p><strong>Who was affected?<br />
</strong>Interested if your prefixes were affected? We made a list of all prefixes and ASn&#8217;s that were leaked, feel free to see if your prefixes was one of them here: <a href="http://www.bgpmon.net/bell-leak.txt">http://www.bgpmon.net/bell-leak.txt</a></p>
<p><strong>BGP update storm<br />
</strong>BGPmon routesevers saw a significant increase in BGP updates. A number of routers on the Internet were not able to keep up and experienced pegged cpu’s, some even had flapping BGP sessions.  Many Tata and Bell customers also reported performance and reachability problems.</p>
<p><strong>BGP leaks<br />
</strong>BGP leaks are relatively common, though the impact varies.  <a title="How the Internet in Australia went down under" href="http://bgpmon.net/blog/?p=554" target="_blank">Earlier this year we reported</a> about another large leak involving the Australian incumbent Telstra, causing most of the Internet in Australia to be affected.  The solution to the problem is simple, filter, filter, filter your BGP peers.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bgpmon.net/a-bgp-leak-made-in-canada/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Internet outage in Lebanon continues into second day</title>
		<link>http://www.bgpmon.net/internet-outage-in-lebanon-continues-for-days/</link>
		<comments>http://www.bgpmon.net/internet-outage-in-lebanon-continues-for-days/#comments</comments>
		<pubDate>Fri, 06 Jul 2012 07:21:48 +0000</pubDate>
		<dc:creator>Andree Toonk</dc:creator>
				<category><![CDATA[BGP instability]]></category>

		<guid isPermaLink="false">http://bgpmon.net/blog/?p=601</guid>
		<description><![CDATA[It’s not often we see large-scale outages such as the one that currently affect Internet users in Lebanon where Internet access has been severely damaged for over 36 hours now. The problems started on July 4th, 16:16 (UTC), which is 19:16 Lebanese time. The cause of the outage according to the Telecoms Ministry in Lebanon [...]]]></description>
				<content:encoded><![CDATA[<p>It’s not often we see large-scale outages such as the one that currently affect Internet users in Lebanon where Internet access has been severely damaged for over 36 hours now. The problems started on July 4th, 16:16 (UTC), which is 19:16 Lebanese time. The cause of the outage according to the Telecoms Ministry in Lebanon is a fiber cut on the IMEWE Submarine cable, in the waters north of Egypt. As Lebanon relies almost exclusively on this IMEWE connection, the outage has affected most of the Lebanese networks.</p>
<p>We normally see about 860 prefixes for IP addresses in Lebanon. The diagram below shows that this was reduced by about 90% at 16:16 (UTC), leaving only about 85 prefixes reachable. Networks relying on Liban Teleccom (AS42020) , the largest provider in Lebanon, are most severely affected.<br />
In the hours after some of these networks were restored as they were rerouted via Satellite ISP AS30721 SATGATE.</p>
<p>At the time of writing about 60% if the Lebanese prefixes are reachable, which leaves 40% unreachable. The prefixes that are reachable will likely experience slower connections then normally, as they now rely on lower capacity connections. <a href="http://www.dailystar.com.lb/Business/Lebanon/2012/Jul-05/179398-internet-blackout-as-submarine-cable-down-again.ashx#axzz1zos1FLjA  ">This report</a> indicates that the current Internet capacity for Lebanon is reduced to 3Gb/s only.</p>
<p><a href="http://www.bgpmon.net/internet-outage-in-lebanon-continues-for-days/lebanon-bgpmon/" rel="attachment wp-att-958"><img class="alignnone size-large wp-image-958" title="Lebanon-bgpmon" src="http://www.bgpmon.net/wp-content/uploads/2012/07/Lebanon-bgpmon-1024x477.png" alt="" width="634" /></a></p>
<p>For Lebanon this is the second country wide outage this week. On Monday July 2nd planned maintenance work on the same submarine cable resulted in a 2,5 hour outage for Lebanon. Luckily large-scale country wide outages are rare. We reported earlier about large outage in <a href="http://bgpmon.net/blog/?p=450">Egypt</a> and <a href="http://bgpmon.net/blog/?p=554">Australia</a>. In the case of Lebanon limiting the reliance on this single point of failure should improve the uptime of the networks significantly.</p>
<p>Let’s hope for everyone in Lebanon that this outage will be resolved soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bgpmon.net/internet-outage-in-lebanon-continues-for-days/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How the Internet in Australia went down under</title>
		<link>http://www.bgpmon.net/how-the-internet-in-australia-went-down-under/</link>
		<comments>http://www.bgpmon.net/how-the-internet-in-australia-went-down-under/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 03:01:50 +0000</pubDate>
		<dc:creator>Andree Toonk</dc:creator>
				<category><![CDATA[BGP instability]]></category>

		<guid isPermaLink="false">http://bgpmon.net/blog/?p=554</guid>
		<description><![CDATA[This Wednesday for about 30 minutes  many Australians found themselves without Internet access. All these users were relying either directly of indirectly on the Telstra network, which at that point was isolated from the Internet. This story quickly hit the local headlines, in this blog we’ll look at the technical details of this event and [...]]]></description>
				<content:encoded><![CDATA[<p>This Wednesday for about 30 minutes  many Australians found themselves without Internet access. All these users were relying either directly of indirectly on the Telstra network, which at that point was isolated from the Internet. This story quickly hit <a href="http://www.skynews.com.au/businessnews/article.aspx?id=721664&amp;vId=">the</a> <a href="http://www.heraldsun.com.au/telstra-internet-service-fails/story-e6frfro0-1226279601127">local</a> <a href="http://www.zdnet.com.au/telstra-hit-by-nationwide-data-outage-339332310.htm">headlines</a>, in this blog we’ll look at the technical details of this event and what the cause of this outage likely was.</p>
<p>Telstra is one of Australia’s major Internet providers. It normally originates approximately 500 Ipv4 prefixes and 3 Ipv6 prefixes. Telstra also provides Transit for many ISP’s and enterprises such as for example AS38285 ‘Dodo’ an Australian ISP and AS10235 ‘National Australia Bank’. So how could such a large provider go down, surely it has lots of redundant hardware and multiple connections in and out of the country?</p>
<p>As it turns out Wednesday’s outage was caused by a routing error many network engineers have first hand experience with, a simple routing leak. A routing leak can happen when small ISP X buys transit from ISP A and also from ISP B. ISP X receives a full bgp routing table from A and because of incorrect filtering  relays these messages to ISP B. As a result ISP B now learns all Internet routes via ISP X to ISP B and ISP X (the customers) now became an upstream provider for ISP B.</p>
<p>The above is likely what happened last Wednesday between Telstra en Dodo (AS38285). Dodo a Telstra customer, re-announced all Internet routes to Telstra, which because it prefers customer routes now thinks the best way to the Internet is through Dodo. <a href="http://lists.ausnog.net/pipermail/ausnog/2012-February/012191.html">This post</a> on the Ausnog mailings list shows how Telstra was using Dodo (a customer) as transit to reach a network in India.</p>
<p>This is not a new zero day attack scenario or anything like it. Instead it’s probably the number one mistake when configuring BGP routing. I remember when I was just learning about BGP my mentor always used to tell me.. Filter, Filter, Filter, filter!! Which is exactly what didn’t happen here.<br />
Because it is so easy to accidentally leak routes in BGP you have to explicitly define filters that prevent this. In this case Dodo should have had filters to make sure they would only announce their prefixes and Telstra should have had these filters as well to prevent hijacks but more importantly to protect its own infrastructure. In this case these filters did not seem to be in place, which allowed this leak to happen.</p>
<p>However, this alone should not have brought down all of Telstra&#8217;s International connections. So what happened? It’s likely that Telstra now tagged all routes learned from Dodo (all 400,000 of them) as customer routes and faithfully announced this to all of its peers and upstream providers.</p>
<p>As keeping large filters up to date can be tedious we often see large providers use a mechanism known as max prefix limits. Instead of explicitly defining which prefixes to allow the number of prefixes expected plus some extra is set as the maximum number of prefixes allowed. This is useful to prevent a sudden spike in announcements, often caused by leaks. In case the limit is reached the BGP session is brought down to prevent the leak from spreading.<br />
<a href="http://www.bgpmon.net/how-the-internet-in-australia-went-down-under/telstra/" rel="attachment wp-att-556"><img class="size-large wp-image-556" title="Telstra Prefixes" src="http://www.bgpmon.net/wp-content/uploads/2012/02/telstra-1024x478.png" alt="" width="620" /></a><br />
This is what likely happened with Telstra’s upstream providers. Telstra announced a full Internet routing table to its upstream providers, triggering the max prefix limit causing the BGP sessions to go down and as a result isolating Telstra and its customers from the rest of the Internet.</p>
<p>This outage is clearly visible when we look at the Telstra routes in the Internet BGP routing tables. The graph on the left clearly shows how all of Telstra’s prefixes suddenly disappeared at 2:40 UTC and came back  approximately 30 minutes later when the leak problem was resolved.</p>
<p>Our analysis shows that this affected approximately  1400 prefixes. This includes Telstra and Telstra customer networks and accounts for about 10% of all the Australian IPv4 prefixes. Worth pointing out is that non of the IPv6 prefixes were affected. This is because it’s common to use different BGP sessions for IPv4 and IPv6. In this case only the IPv4 session went down leaving the IPv6 networks unaffected.</p>
<p>And so it could happen that one simple customer leak can bring down a complete carrier network. So today&#8217;s lesson is Filter Filter Filter!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bgpmon.net/how-the-internet-in-australia-went-down-under/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>F-Root DNS server moved to Beijing</title>
		<link>http://www.bgpmon.net/f-root-dns-server-moved-to-beijing/</link>
		<comments>http://www.bgpmon.net/f-root-dns-server-moved-to-beijing/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 03:40:46 +0000</pubDate>
		<dc:creator>Andree Toonk</dc:creator>
				<category><![CDATA[Hijack]]></category>

		<guid isPermaLink="false">http://bgpmon.net/?p=540</guid>
		<description><![CDATA[F-Root DNS server moved to Beijing Systems such as DNS (root) servers often rely on anycast technology to improve availability and response time. The idea behind anycast is that the same prefix is announced from multiple geographically separated systems. As a result the client should always end-up at the closest (as seen from a BGP [...]]]></description>
				<content:encoded><![CDATA[<p><strong>F-Root DNS server moved to Beijing</strong><br />
Systems such as DNS (root) servers often rely on anycast technology to improve availability and response time. The idea behind anycast is that the same prefix is announced from multiple geographically separated systems. As a result the client should always end-up at the closest (as seen from a BGP perspective) server.</p>
<p>Often these anycast nodes are deployed to only serve specific network and/or regional areas, making them only reachable from the networks where they are deployed. In the case of the F-root server, operated by ISC, there are quite a few local servers. See this page for a detailed list: <a href="https://www.isc.org/community/f-root/sites">https://www.isc.org/community/f-root/sites</a> One of these servers is the F-root located in China.</p>
<p>This weekend for about 25 hours this particular root server was reachable not only from China, but from several places in the world when using IPv6. Normally this shouldn’t be a real problem, as the root servers return the same DNS response regardless of their geographical location. However in the case of China, all traffic typically passes through the great firewall where DNS responses for requests such as facebook.com are often rewritten to different false IP addresses. <em> Please note that I am not aware of any data to confirm if this is what happened in this particular case!</em></p>
<p><strong>Technical details</strong><br />
This weekend between 01 Oct 2011 17:56:12 and 02 Oct 2011 19:01:09 GMT a number of providers thought that the best IPv6 path to the F-root server (AS3557), was to the F-root in China.</p>
<p>The prefix for the F-root server is 2001:500:2f::/48 and is originated by the following AS numbers:<br />
3557 ISC-F-ROOT Internet Systems Consortium, Inc<br />
1280 ISC-AS1280 Internet Systems Consortium, Inc.<br />
30132 ISC-AMS1 Internet Systems Consortium, Inc</p>
<p>By looking at the next hop AS number we can get a good feeling of where the server for this particular announcement resides. When analyzing the announcement for 2001:500:2f::/48 we saw one new AS we had not seen before outside of China, AS55439.</p>
<p>When looking at all announcements for the F-root in China, we saw the following constant in the ASpath:<br />
<em>6939 23911 18344 37944 24151 55439 3557</em></p>
<p>In this case AS55439 is the AS for ISC-PEK2 Internet Systems Consortium, (Beijing, China). Next the announcement was passed along to AS24151 (China Internet Network Information Center), AS37944 (CHINA SCIENCE AND TECHNOLOGY NETWORK), AS18344 (CNCGROUP-BACKBONE-NORTH), it then ended up at the AS23911, the China Next Generation Internet Beijing IX. That’s where it was learned by AS6939 Hurricane Electric, the world’s largest IPv6 provider. Hurricane electric then advertised it to its customers.</p>
<p>The dataset I used showed that numerous Hurricane electric customers in countries worldwide, including for example Germany, South Africa, Brazil and the US selected this path to China. Some of the large providers include AT&amp;T, Telia and Interoute.</p>
<p><strong>What does all this mean</strong><br />
It’s likely that DNS queries over IPv6 to the F-root server from clients worldwide were answered by the F-root in China. Although this is in itself is not necessarily a problem, it does expose this traffic to the Great Chinese Firewall with the risk of altering the responses.</p>
<p>This is not the first time this happens, last year <a href="http://www.renesys.com/blog/2010/03/fouling-the-global-nest.shtml ">Renesys reported</a> about a similar event involving the I-root server and China.</p>
<p>The only way to make sure that DNS responses are not rewritten is to use DNSSEC, this will allow the resolver to verify the authenticity of the response.<br />
With regards to BGP, in this case all that seems to have happened was a BGP leak. Things like this are typically the result of an operator mistake. Best practice is to monitor for these kinds of things, so you’ll be alerted as soon as it happens and as a result allowing operators to limit the effect of such an event. <a href="http://www.bgpmon.net">BGPmon.net</a> provides users with several flexible ways to monitor BGP announcement and to check if they match your BGP policies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bgpmon.net/f-root-dns-server-moved-to-beijing/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Internet Syria offline</title>
		<link>http://www.bgpmon.net/internet-syria-offline/</link>
		<comments>http://www.bgpmon.net/internet-syria-offline/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 18:49:47 +0000</pubDate>
		<dc:creator>Andree Toonk</dc:creator>
				<category><![CDATA[BGP instability]]></category>
		<category><![CDATA[BGPmon.net]]></category>

		<guid isPermaLink="false">http://bgpmon.net/?p=511</guid>
		<description><![CDATA[The unrest in Syria continues and as of this morning it seems that the Syrian government has shutdown about of all Syrian networks. The Internet in Syria is dominated by “The Syrian Telecommunications Establishment”, which routes its networks from AS29256 and AS29386. Besides these providers there are AS6453 – Tata communications which routes 6 Syrian [...]]]></description>
				<content:encoded><![CDATA[<p>The unrest in Syria continues and as of this morning it seems that the Syrian government has shutdown about of all Syrian networks.</p>
<p>The Internet in Syria is dominated by “The Syrian Telecommunications Establishment”, which routes its networks from AS29256 and AS29386.  Besides these providers there are AS6453 – Tata communications which routes 6 Syrian prefixes and AS39154 The Syrian Higher Education Network.</p>
<p>As of this morning only 19 of the normally 56 Syrian prefixes are routed.  Interestingly the prefixes that are no longer routed are normally   originated by AS29256 and AS29386, &#8220;The Syrian Telecommunications Establishment&#8221;.  The 6 Tata communication prefixes as  well as the Syrian Higher Education Network have not been affected.</p>
<p>The table below show how many prefixes are normally routed by these providers, and how it has changed over the last hours.</p>
<p><a href="http://bgpmon.net/wp-content/uploads/2011/06/Internet-Syria-2011.png"><img class="size-full wp-image-514 alignright" title="Internet Syria 2011" src="http://bgpmon.net/wp-content/uploads/2011/06/Internet-Syria-2011.png" alt="" width="456" height="276" /></a> <!-- table {  }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl63 {  }.xl64 { color: black; }.xl65 { color: black; } --></p>
<table border="0" cellspacing="0" cellpadding="0" width="364">
<col width="229"></col>
<col span="3" width="65"></col>
<tbody>
<tr height="15">
<td width="129" height="15">Date</td>
<td width="85">Number of Prefixes</td>
<td width="85">Number of origin ASN</td>
<td width="85">Number of Upstream ASN</td>
</tr>
<tr height="15">
<td height="15" align="left">2011-06-01 00:00</td>
<td align="right">56</td>
<td align="right">4</td>
<td align="right">10</td>
</tr>
<tr height="15">
<td height="15" align="left">2011-06-01 16:00</td>
<td align="right">56</td>
<td align="right">4</td>
<td align="right">10</td>
</tr>
<tr height="15">
<td height="15" align="left">2011-06-03 08:00</td>
<td align="right">19</td>
<td align="right">4</td>
<td align="right">10</td>
</tr>
<tr height="15">
<td height="15" align="left">2011-06-03 16:00</td>
<td align="right">19</td>
<td align="right">4</td>
<td align="right">10</td>
</tr>
</tbody>
</table>
<div style="clear:both;"></div>
<p>
<p>
The pie charts below show how the Syrian network are distributed over the different providers. Clearly visible are the reduced number of prefixes announced by “The Syrian Telecommunications Establishment”,  AS29256 and AS29386. 
</p>
<div id="attachment_531" class="wp-caption alignleft" style="width: 403px"><a href="http://bgpmon.net/wp-content/uploads/2011/06/prefix_dist_june1-1.png"><img class="size-full wp-image-531" title="prefix_dist_june1" src="http://bgpmon.net/wp-content/uploads/2011/06/prefix_dist_june1-1.png" alt="" width="393" height="303" /></a><p class="wp-caption-text">Prefix Distribution June 1</p></div>
<div id="attachment_530" class="wp-caption alignright" style="width: 403px"><a href="http://bgpmon.net/wp-content/uploads/2011/06/prefix_dist_june3.png"><img class="size-full wp-image-530" title="prefix_dist_june3" src="http://bgpmon.net/wp-content/uploads/2011/06/prefix_dist_june3.png" alt="" width="393" height="303" /></a><p class="wp-caption-text">Prefix Distribution June 3</p></div>
<div style="clear:both;"></div>
<p><b>Update June 4th, 2011</b><br />
As of this morning (approximately 08:00 UTC) all Syrian networks routed by &#8220;<em>The Syrian Telecommunications Establishment</em>&#8221; are back online! Some prefixes came back earlier this morning. Also see Google&#8217;s Transparency report <a href="http://www.google.com/transparencyreport/traffic/?r=SY&#038;l=EVERYTHING">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bgpmon.net/internet-syria-offline/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Facebook&#8217;s detour through China and Korea</title>
		<link>http://www.bgpmon.net/facebooks-detour-through-china-and-korea/</link>
		<comments>http://www.bgpmon.net/facebooks-detour-through-china-and-korea/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 16:58:38 +0000</pubDate>
		<dc:creator>Andree Toonk</dc:creator>
				<category><![CDATA[Hijack]]></category>

		<guid isPermaLink="false">http://bgpmon.net/?p=499</guid>
		<description><![CDATA[Many of you remember the story of about a year ago, when we reported that a Chinese network was announcing a significant part of the prefixes on the Internet.  Networks affected by this incident included big names such as dell.com and cnn.com as well as U.S. government (.gov) and military (.mil) sites, including those for [...]]]></description>
				<content:encoded><![CDATA[<p>Many of you remember the story of about <a href="http://bgpmon.net/?p=282">a year ago</a>, when we reported that a Chinese network was announcing a significant part of the prefixes on the Internet.  Networks affected by this incident included big names such as dell.com and cnn.com as well as U.S. government (.gov) and military (.mil) sites, including those for the Senate.<br />
This week a similar story appeared. Although the number of networks involved was low, it did affect one of the world most popular websites, Facebook!</p>
<p>Barrett Lyon reported on his <a href="http://www.blyon.com/hey-att-customers-your-facebook-data-went-to-china-and-korea-this-morning/">blog</a> that he noticed that AT&amp;T was routing traffic to Facebook through a Chinese network (China telecom AS4134). In this blog post we will take a closer look at what exactly happened.</p>
<p><strong>The raw data<br />
</strong>By analyzing the raw data we can indeed see BGP announcements for several of Facebook prefixes with rather long and odd looking ASpaths. We also see several US based providers, such as AT&amp;T, that selected a path through SK Telecom (Hanaro Telecom South Korea) and China Telecom.</p>
<p>It seems to all have started on Tuesday March 22, at 07:15:02 GMT. That’s when we see the first announcement for one of Facebook’s networks, routed through Korean provider SK Telecom. The last announcement via SK Telecom was at Tuesday, 22 Mar 2011 16:11:02 GMT, so about 9 hours in total.</p>
<p>The impact of this incident varied per provider. Some networks didn’t use the path through Korea, some only for a few of Facebook’s prefixes as some for (almost) all of Facebook’s prefixes.</p>
<p>Two Japanese providers, who peer directly with SK Telecom (Korea) routed the following Facebook networks trough AS9318, SK Telecom (Hanaro Telecom South Korea)</p>
<ul>
<li>204.15.20.0/22</li>
<li>66.220.144.0/21</li>
<li>66.220.152.0/21</li>
<li>69.171.224.0/20</li>
<li>69.171.239.0/24</li>
<li>69.171.240.0/20</li>
<li>69.171.255.0/24</li>
<li>69.63.176.0/21</li>
<li>69.63.184.0/21</li>
<li>74.119.76.0/22</li>
</ul>
<p>The providers affected by this were:<em><br />
Internet Initiative Japan Inc. (IIJ)   ASpath:  2497 9318 32934 32934 32934<br />
KDDI   ASpath: 7660 2516 9318 32934 32934 32934</em></p>
<p>Several other large providers such as Savis, AT&amp;T, Tinet, KPN, Telia, Qwest, AboveNet and Telecom Italia (note this list is not inclusive, there are several more) were also affected, however in these cases only two prefixes were affected.</p>
<p>69.171.224.0/20<br />
69.171.255.0/24</p>
<p>All of these providers learned this announcement via AS4134, which is China telecom. In all cases the Facebook prefixes were prepended three times. Different peers on different locations saw the announcements, the common part in the ASpath was:</p>
<pre>4134 9318 32934 32934 32934</pre>
<p>This proves that the announcements were not spoofed by China telecom, as others learned it directly from SK Telecom as well.</p>
<p><strong>What exactly did AT&amp;T see at the time of the incident?</strong></p>
<p>This is a snapshot of the AT&amp;T routing table at March 22<sup>nd</sup>,  8AM, showing Facebook networks only. Note that only 2 networks were routed through Korea and China.</p>
<table border="0" cellspacing="0" cellpadding="0" width="660">
<tbody>
<tr>
<td width="190" valign="bottom"><strong>Prefix</strong></td>
<td width="238" valign="bottom"><strong>ASpath</strong></td>
</tr>
<tr>
<td width="190" valign="bottom">66.220.144.0/21</td>
<td width="400" valign="bottom">7018 3356 32934 32934</td>
</tr>
<tr>
<td width="190" valign="bottom">66.220.152.0/21</td>
<td width="400" valign="bottom">7018 3356 32934 32934</td>
</tr>
<tr>
<td width="190" valign="bottom">66.220.159.0/24</td>
<td width="400" valign="bottom">7018 3549 32787 32934</td>
</tr>
<tr>
<td width="190" valign="bottom">69.63.176.0/21</td>
<td width="400" valign="bottom">7018 3356 32934 32934</td>
</tr>
<tr>
<td width="190" valign="bottom">69.63.184.0/21</td>
<td width="400" valign="bottom">7018 3356 32934 32934</td>
</tr>
<tr>
<td width="190" valign="bottom"><em><strong>69.171.224.0/20</strong></em></td>
<td width="400" valign="bottom"><em><strong>7018 4134 9318 32934 32934 32934</strong></em></td>
</tr>
<tr>
<td width="190" valign="bottom">69.171.239.0/24</td>
<td width="400" valign="bottom">7018 2914 32934 32934</td>
</tr>
<tr>
<td width="190" valign="bottom">69.171.240.0/20</td>
<td width="238" valign="bottom">7018 3356 32934 32934</td>
</tr>
<tr>
<td width="190" valign="bottom"><em><strong>69.171.255.0/24</strong></em></td>
<td width="400" valign="bottom"><strong><em>7018 4134 9318 32934 32934 32934</em></strong></td>
</tr>
<tr>
<td width="190" valign="bottom">74.119.76.0/22</td>
<td width="400" valign="bottom">7018 3356 32934 32934</td>
</tr>
</tbody>
</table>
<p>As can be seen from the snapshot above, the majority of the prefixes (as seen from AT&amp;T) are routed through Level3 (3356). So what happened to the other 2 prefixes? Why was the path to those networks not through Level3. To answer that question we need to know the path to these networks from Level3′s perspective. When looking at the same datasource we see the following for 69.171.224.0/20:</p>
<p><!-- table {  }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl63 { border: 0.5pt solid windowtext; }.xl64 { color: windowtext; font-weight: 700; font-family: Calibri; border: 0.5pt solid windowtext; } --></p>
<table border="0" cellspacing="0" cellpadding="0" width="660">
<col width="190"></col>
<col width="400"></col>
<tbody>
<tr height="15">
<td width="190" height="15"><strong>Collector</strong></td>
<td width="400"><strong>ASpath</strong></td>
</tr>
<tr height="15">
<td height="15">Level3</td>
<td>3356 32934 32934   32934 32934 32934</td>
</tr>
<tr height="15">
<td height="15">Verizon   Business</td>
<td>701 3356 32934 32934   32934 32934 32934</td>
</tr>
<tr height="15">
<td height="15">Sprint</td>
<td>1239 3356 32934 32934   32934 32934 32934</td>
</tr>
</tbody>
</table>
<p>This is interesting; it shows that Level3 learns the Facebook prefix with a rather long ASpath, Facebook’s AS is prepended 5 times. This explains why AT&amp;T chose the path via China and Korea. Even though it’s long, it was shorter than the heavily prepended path via Level3. As a result providers who peer with China Telecom and had this shorter alternative, would have chosen the path via China.<br />
Global Crossing, another large global Transit provider showed the same behavior as Level3, an ASpath with 5 times Facebook’s AS32934.</p>
<p><strong>What could be the reason?</strong></p>
<p>For some reason the path via providers such as Level3 or Global Crossing, Transit networks that are commonly used by the affected providers, were advertised with a very long ASpath. And as a result the providers that have a peering agreement with China Telecom (such as AT&amp;T) started to use the shorter path via China and Korea.<br />
SK Telecom normally is not one of Facebook’s transit providers, but likely just a normal peer.  SK Telecom then announced these Facebook prefixes to its peers (IIJ, KDDI and  China Telecom) which started to use them.</p>
<p>China Telecom did not filter these Facebook announcements learned via SK Telecom and re-announced them happily to its peers. As a result traffic from several major global providers started using the path through China and Korea to reach some of Facebook’s networks.</p>
<p>Why the providers such as Level3 and Global Crossing did not have a shorter path to these two Facebook networks is unknown. But it’s likely that it had to do with the Facebook BGP setup / infrastructure.</p>
<p><strong>Keep in mind….</strong><br />
It’s likely that both China Telecom and SK Telecom have a presence in the US. And as such it’s not necessarily the case that traffic was actually routed through China.  If someone has a traceroute from AT&amp;T or any of the other networks taken at the time of the incident, please post this in the comments, this can helps us determining how the actual traffic flowed.</p>
<p>Facebook has a lot of data and does all kinds of CDN (content delivery) tricks to get data to its users.  Depending on your location you get a different DNS result and send to a different server. This might have been the reason why there were no reports of widespread outage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bgpmon.net/facebooks-detour-through-china-and-korea/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
