Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
The Internet

Pakistan YouTube Block Breaks the World 343

Allen54 noted a followup to yesterday's story about Pakistan's decision to block YouTube. He notes that "The telecom company that carries most of Pakistan's traffic, PCCW, has found it necessary to shut Pakistan off from the Internet while they filter out the malicious routes that a Pakistani ISP, PieNet, announced earlier today. Evidently PieNet took this step to enforce a decree from the Pakistani government that ISP's must block access to YouTube because it was a source of blasphemous content. YouTube has announced more granular routes so that at least in the US they supercede the routes announced by PieNet. The rest of the world is still struggling."
This discussion has been archived. No new comments can be posted.

Pakistan YouTube Block Breaks the World

Comments Filter:
  • by Anonymous Coward on Monday February 25, 2008 @09:57AM (#22544894)
    PCCW apparently wasn't filtering prefixes announced by PieNet. Very stupid.
  • by br00tus ( 528477 ) on Monday February 25, 2008 @10:01AM (#22544932)
    There is a NANOG [merit.edu] thread about this. Apparently a more specific IP route was advertised.
  • by Anonymous Coward on Monday February 25, 2008 @10:02AM (#22544944)
    Here's what the BBC have to say about it. [bbc.co.uk]
    It goes some way to explaining why YouTube became unavailable, but doesn't go into detail.
  • by Anonymous Coward on Monday February 25, 2008 @10:05AM (#22544984)
    The route was announced by AS17557.
  • by Anonymous Coward on Monday February 25, 2008 @10:07AM (#22545002)
    Maybe if the article would link to the actual story instead of linking every word to its definition in order to appease the losers who are incapable of tying their own shoelaces or using google, it would be easier to understand for those of us who actually DO have technical know-how and don't need it spoonfed to us.

    http://arstechnica.com/news.ars/post/20080225-insecure-routing-redirects-youtube-to-pakistan.html [arstechnica.com]

    Basically, pakistan telecom blackholed the network using BGP to advertise that all traffic to those destinations should go to a nonexistant router in their network. Then, instead of keeping that in their own network, they "accidentally" (never ascribe to incompetence what can be explained by rabid extremists) published their route publicly, where it was picked up by the rest of the internet, because the rest of the internet just assumes that nobody would ever fuck up something as arcane and complex as BGP, and makes no attempt to determine whether or not the origination of a given routing rule matches with who should actually be in charge of routing that network.
  • by Anonymous Coward on Monday February 25, 2008 @10:07AM (#22545004)
    A lot has happened since the original story was written.

    It's too bad that my comment from yesterday [slashdot.org], which links to detailed technical information [cydeweys.com], is still languishing buried.
  • by 1sockchuck ( 826398 ) on Monday February 25, 2008 @10:13AM (#22545080) Homepage
    Better technical explanations of the event are available from the Renesys blog [renesys.com] and Data Center Knowledge [datacenterknowledge.com]. The erroneous IP assignments spread across the net within 1 minute, 45 seconds of its announcement by Pakistan Telecom, according to a timeline by Renesys. It took about 80 minutes for YouTube to inform its providers that the route had been hijacked. YouTube says it is "investigating and working with others in the Internet community to prevent this from happening again."
  • by suso ( 153703 ) * on Monday February 25, 2008 @10:15AM (#22545098) Journal
    Probably just search for BGP routing and AS numbers on wikipedia.
  • All Things Pakistan [pakistaniat.com] points out that this may have a political rather than a "cultural" reason - given that a number of videos of election rigging were posted.
  • by Shakrai ( 717556 ) * on Monday February 25, 2008 @10:22AM (#22545166) Journal

    The BGP [wikipedia.org] article on Wikipedia is as good a place to start as any. Beyond that you can do some Google searches for it.

    Basically BGP is the protocol used by routers to exchange route information with each other. A real oversimplification would involve three networks/routers, A, B and C. C receives it's network connectivity through A. C announces the networks it's responsible for to A, whom aggregates them before announcing them (and it's own networks) to B.

    In theory, A shouldn't accept any routes from C for IP addresses not owned by C. Apparently that wasn't the case here though, or Pakistan's little stunt wouldn't have impacted anybody outside of Pakistan.

  • by rvw ( 755107 ) on Monday February 25, 2008 @10:23AM (#22545180)

    Probably just search for BGP routing and AS numbers on wikipedia.
    Here you go: http://en.wikipedia.org/wiki/Border_Gateway_Protocol/ [wikipedia.org]
  • by autocracy ( 192714 ) <slashdot2007@sto ... .com minus berry> on Monday February 25, 2008 @10:31AM (#22545262) Homepage
    I submitted this article yesterday while it was happening, but of course at that time details were even more sparse (speed vs. informative.. oh well). Some of the BGP routing information I captured is printed out on Wikinews [wikinews.org]. The basic idea is that Pakistan Telecon, BGP [wikipedia.org] Autonomous System [wikipedia.org] number 17557 began being chatty, saying that it owned Youtube's netblock. It did this using a /24 routing prefix [wikipedia.org], whereas Youtube exports its route as a /22 (which it should...). Because the /24 was more specific, it became the primary route of reference. This is similar to the "AS 7007" incident (Google it... there's no one good link) back in the late 1990s (one of two incidents in the history of the Internet that has brought the entire Internet down, IIRC).

    I'll check back for related questions to fill in any blanks later :)

  • by dumb_jedi ( 955432 ) on Monday February 25, 2008 @10:45AM (#22545392)
    To understand why Pakistan took Youtube out, you have to first read the SourceOfAllHumanKnoledge(tm)(c) Wikipedia articles mentioned above. For the lazy ( like me ) here goest a shorter explanation.

    BGP is the core routing protocol of the Internet. It's used to connect really big blocks of IP address to the net, telling the rest of the Internet how to reach them. For BGP to work, all BGPs routers have to be connected to one another in a mesh network ( TCP connections ) and must have a unique number in this mesh. This number is unique in the world and is assigned by IANA. ISPs that have such number have the "power" to change global routes, and this nutball Pakistani ISP is one of them. What they did was to tell the internet, by updating a global route, that the route to Youtube is now through some router they had.

    What they expected is obvious, they wanted toi redirect all request to Youtube to another site. But instead of propagating a new route to the INSIDE of their network, they updated a global route and screwed everything. Ok, they could have just changed an DNS entry and redirected all DNS queries to their DNS server, thus negating the workaround of using OpenDNS.

    If they knew the consequences of changing the route is only relevant on the lawsuite Youtube should put on them. They should loose they AS number immediately. And someone should redraft RFC 4271 to give routes an "owner", so If you receive a update on your router from someone not the owner you just discard it. In this way, an router can only update their give block.
  • by X0563511 ( 793323 ) on Monday February 25, 2008 @10:53AM (#22545496) Homepage Journal
  • by Shakrai ( 717556 ) * on Monday February 25, 2008 @11:18AM (#22545742) Journal

    If you already know whose IP address are whose, then what do you need the routing protocol for in the first place?

    Because multi-homed networks may wish to have finer control over which links traffic comes in on then allowed for with simple static routes. Because my above example (A/B & C) was a drastic oversimplification and the actual internet involves tens of thousands (hundreds?) of different networks connected in different ways and trying to manage static routes for all of them would be virtually impossible.

    Imagine if the process of connecting a new network to the internet involved having to update static routing tables in every core router on the internet and you'll start to understand why BGP exists. Hell, there are routing protocols meant for internal usage (OSPF [wikipedia.org]), because static routes become unmanageable if you have more then a few routers/netmasks to contend with.

    BGP inherently depends on the honor system - that is the crux of the problem

    Not strictly. The "honor system" should really be limited to the Tier 1 providers. Anybody else really should be filtering the routes that they will accept. There are already provisions in place to remove the "honor system" from consideration -- it seems that Pakistan's upstream provider choose not to use them.

    This really isn't anything new. This kind of stuff has happened before. It's not even unique to the internet either -- the POTS network has a routing protocol used to setup calls/announce which switch is responsible for which number/range. One would suspect that SS7 can be abused by "bad" telcos as easily as BGP can be abused by "bad" ISPs.

  • by ThreeGigs ( 239452 ) on Monday February 25, 2008 @12:10PM (#22546394)
    Same mistake I'm occasionally still guilty of, which is leaving a trailing slash on the URL, probably because of the example code in the post screen.

    Try it without the slash:

    http://en.wikipedia.org/wiki/Border_Gateway_Protocol [wikipedia.org]
  • by greedyturtle ( 968401 ) on Monday February 25, 2008 @12:13PM (#22546440)
    For those of you who actually want to know "How they did it?" posted from: Renesys Blog [renesys.com]
    which was found from Cydeweys [cydeweys.com] which is updating as the story progresses. Both of those sites seem to be running a bit slow, so hesitate before clicking.

    Full text of Reneysys: Pakistan hijacks YouTube.

    A few hours ago, Pakistan Telecom (AS 17557) began advertising a small part of YouTube's (AS 36561) assigned network. This story is almost as old as BGP. Old hands will recognize this as, fundamentally, the same problem as the http://merit.edu/mail.archives/nanog/1997-04/msg00380.html [slashdot.org]">infamous AS 7007 from 1997, a more recent ConEd mistake of early 2006 [renesys.com] and even TTNet's Christmas Eve gift 2005 [renesys.com].

    Just before 18:48 UTC, Pakistan Telecom, in response to government order [renesys.com] to block access to YouTube (see news item [yahoo.com]) started advertising a route for 208.65.153.0/24 to its provider, PCCW (AS 3491). For those unfamiliar with BGP, this is a more specific route than the ones used by YouTube (208.65.152.0/22), and therefore most routers would choose to send traffic to Pakistan Telecom for this slice of YouTube's network.

    I became interested in this immediately as I was concerned that I wouldn't be able to spend my evening watching imbecilic videos of cats doing foolish things (even for a cat). Then, I started to examine our mountains of BGP data and quickly noticed that the correct AS path ("Will the real YouTube please stand up?") was getting restored to most of our peers.

    The data points identified below are culled from over 250 peering sessions with 170 unique ASNs. While it is hard to describe exactly how widely this hijacked prefix was seen, we estimate that it was seen by a bit more than two-thirds of the Internet.

    This table shows the timing of the event and how quickly the route propagated (this is actually a fairly normal propagation pattern). The ASNs seeing the prefix were mostly transit ASNs below, so this means that these routes were distributed broadly across the Internet. Almost all of the default free zone (DFZ) carried the hijacked route at least briefly.

    18:47:00uninterrupted videos of exploding jello [youtube.com]

    18:47:45first evidence of hijacked route propagating in Asia, AS path 3491 17557

    18:48:00several big trans-Pacific providers carrying hijacked route (9 ASNs)

    18:48:30several DFZ providers now carrying the bad route (and 47 ASNs)

    18:49:00most of the DFZ now carrying the bad route (and 93 ASNs)

    18:49:30all providers who will carry the hijacked route have it (total 97 ASNs)

    20:07:25YouTube, AS 36561 advertises the /24 that has been hijacked to its providers

    20:07:30several DFZ providers stop carrying the erroneous route

    20:08:00many downstream providers also drop the bad route

    20:08:30and a total of 40 some-odd providers have stopped using the hijacked route

    20:18:43and now, two more specific /25 routes are first seen from 36561

    20:19:3725 more providers prefer the /25 routes from 36561

    20:28:12peers of 36561 start seeing the routes that were advertised to transit at 20:07

    20:50:59evidence of attempted prepending, AS path was 3491 17557 17557

    20:59:39hijacked prefix is withdrawn by 3491,
  • by billstewart ( 78916 ) on Monday February 25, 2008 @12:36PM (#22546770) Journal
    BBC said the outage was only for two hours.
  • Re: Barack (Score:2, Informative)

    by Shakrai ( 717556 ) * on Monday February 25, 2008 @12:37PM (#22546788) Journal

    I debated whether or not to even mention my involvement with him because half of the Democratic Party has yet to accept him, let alone the other half of the electorate.

    I'll have to look into what his positions are on our trampled rights

    FWIW, he was a civil rights attorney at one point in his life.

    because Obama is the kind of "fresh air candidate" who will at least listen to the people.

    He's still going to need help. To quote him "Good ideas go to Washington to die". We'll never see any meaningful change come out of Washington until we decide to hold our Congressman to account for their actions. Nobody does though. How else do you explain that Congress (as a whole) has approval ratings in the 20s, yet people continue to send their existing Representatives back, year after year?

    People are going to need to get involved in the process and speak louder and more forcefully then the special interests/lobbyists that have hijacked Congress. If that happens then I'm actually very hopeful that Obama can manage to unite this country. If it doesn't happen then I still feel that he will be a force for good -- but his grander ideas will probably fall off and die.

  • by billstewart ( 78916 ) on Monday February 25, 2008 @01:47PM (#22547882) Journal
    Pakistan Telecommunication Company Limited [wikipedia.org] is the former government telecom monopoly.
    Just about any ISP is going to get themselves a BGP Autonomous System Number and use BGP to communicate with other ISPs.


    A long long time ago, when the Internet was smaller and more trusting, long enough ago that I've forgotten the names of the guilty parties, some company in Virginia made a mistake in configuring their router, and announced that their T1 was a really really good route to MAE-East, and about 1/3 of the packets on the Internet decided to go use their T1, for a couple of seconds before it melted... Since then, it's become a Best Current Practice for ISPs to filter out routing announcements from their customers, and most ISPs also filter their peering links with other ISPs, though some are more aggressive about it than others (plus they tend to have limits on how specific a route can be announced, just to keep router table sizes from exploding.)


    But even with that, occasional glitches can happen. A couple of years ago, an ISP in South America did a bad job of route summarization (probably using RIP internally, which uses the old Class A/B/C system instead of CIDR), and announced a route for the /8 network that belonged to a major US Tier 1 ISP. Their upstream provider didn't filter it, and it was a couple of hops before you got to the US ISP, so much of Latin America lost connectivity to that US ISP because they were using that upstream. Once the US ISP saw bad route announcements about their space, they announced a pair of /9 routes to cover their /8, which was more specific than the South American route and therefore fixed everything. Many other large ISPs have done the same sorts of things as a defensive measure.


    It's highly unlikely that PCTL was trying to block YouTube access for the whole world, as opposed to just for their country. That doesn't mean what they did was competent, of course, but it's not too surprising that somebody exported a route to their peers that they really only intended for their customers. Their upstream provider probably should have filtered out the announcements as well. But things like this do happen, and if you're likely to be a major target, either of malice or of incompetence, you need to do the extra work to monitor route announcements that include your address space.

  • by mikael_j ( 106439 ) on Monday February 25, 2008 @02:00PM (#22548094)

    If you're talking about reverend Åke Green he didn't just say "I think homosexuality is bad", he called homosexuality an "abnormal, a horrible cancerous tumor in the body of society". And he while he did stand trial he was not found guilty of any crime.

    /Mikael

  • Re:CBG (Score:3, Informative)

    by afidel ( 530433 ) on Monday February 25, 2008 @02:19PM (#22548414)
    You must have missed the part of history class where they taught about the Lend-Lease Act. The US was very much involved in the war starting in March of 1941, we might not have had boots on the ground but without our help the UK wouldn't have stood much of a chance. Even before the formal act the US had been sending quite a lot of supplies to the UK under various other programs.
  • by XchristX ( 839963 ) on Monday February 25, 2008 @04:32PM (#22550212)

    Pakistan is generally a pretty tolerant country when it comes to matters involving religion
    Tell that to these (http://news.bbc.co.uk/1/hi/world/south_asia/6367773.stm [bbc.co.uk]) and these (http://news.bbc.co.uk/2/hi/south_asia/2281191.stm [bbc.co.uk] http://news.bbc.co.uk/2/hi/south_asia/1625976.stm [bbc.co.uk]) religious minorities in Pakistan.

    Statistically, Pakistan has the one of the worst records of religious tolerance in the world, and is listed as a country of particular concern by the USCIRF (http://www.uscirf.gov/countries/countriesconcerns/index.html [uscirf.gov] http://en.wikipedia.org/wiki/1971_Bangladesh_atrocities [wikipedia.org]). Even middle-eastern countries are actually doing somewhat better.
  • by Shakrai ( 717556 ) * on Monday February 25, 2008 @05:19PM (#22550802) Journal

    It doesn't take much to screw up call routing

    Indeed. And I've seen some really great stuff happen since number portability came out. Case in point:

    Friend has Time Warner's "digital phone" VoIP offering. Switches to Vonage to save money and ports her number. Now Time Warner customers are unable to call her number -- they get a generic error message. Everybody else gets through just fine.

    Vonage refuses to do anything about it (their customer service really sucks, doesn't it?) because it's "Time Warner's problem". Time Warner refuses to do anything about it because "You aren't a customer anymore". My friend gets screwed.

    Worst part is, there doesn't really seem to be any appeals process for this type of thing, other then leaving Vonage and going to a provider that would actually enforce her number portability rights. At least with regulated POTS service you could likely file a complaint with the state regulatory agency (the PSC here in New York) and get something done that way. No such avenue for people relying on VoIP products.

Understanding is always the understanding of a smaller problem in relation to a bigger problem. -- P.D. Ouspensky

Working...