csperkins.org

Networked Systems H (2020-2021)

Lecture 9: Networks and Internet Routing

Lecture 9 discusses content distribution networks and Internet routing. It discusses what are CDNs and what role they play in the Internet, as mechanism to spread load and reduce latency. The problem of inter-domain routing is then introduced, and the BGP routing protocol is reviewed as a mechanism for providing policy routing across the Internet. Some of the security limitations of BGP are highlighted, along with current approaches to try to address these. Finally, intra-domain routing, routing within a network, is briefly reviewed.

Part 1: Content Distribution Networks

The lecture begins by discussing content distribution networks (CDNs). It outlines what are CDNs, and the role they play in the network to help distribute load and reduce latency. Two approaches to locating CDN nodes, using DNS and anycast routing, are briefly introduced.

00:00:00.000 In this lecture I want to talk

00:00:02.065 about how routing works in the Internet.

 

00:00:05.399 I’ll start, in this part, by talking

00:00:07.905 briefly about content distribution networks, which we

00:00:10.411 discussed a couple of lectures ago.

 

00:00:12.659 And then, in the later parts,

00:00:15.346 I’ll talk about inter-domain routing, how network

00:00:18.480 operators cooperate to deliver data across the

00:00:21.614 wide-area network. I’ll talk briefly about routing

00:00:24.749 security. And I’ll talk about intra-domain routing,

00:00:27.883 how routing within an operator’s network.

 

00:00:33.660 So, in this part, I’d like to

00:00:35.785 start by talking about content distribution networks.

 

00:00:38.010 I’ll talk about how CDNs help with

00:00:40.565 load balancing and latency reduction, and how

00:00:43.120 they're implemented using either the DNS or

00:00:45.675 using anycast routing.

 

00:00:51.330 So what is a content distribution network?

 

00:00:55.350 A content distribution network is a service

00:01:01.436 which provides scalable, load-balanced, low-latency hosting for

00:01:07.521 web content.

 

00:01:09.360 CDN operators, companies such as Akamai,

00:01:12.692 CloudFlare, and Fastly, are in the business

00:01:16.578 of hosting content for their customers.

 

00:01:20.010 Their customers give them web content,

00:01:22.117 and this may be images, it may

00:01:24.576 be software uploads, it may be video,

00:01:27.035 doesn't matter what it is, anything that

00:01:29.494 can sit on the web.

 

00:01:31.350 And the CDN hosts that content in

00:01:33.725 web caches that are spread around the

00:01:36.101 world.

 

00:01:36.540 And some of these are located in

00:01:39.587 data centres, some of these are located

00:01:42.633 in edge networks operated by various ISPs.

 

00:01:45.780 And the idea is to reduce the

00:01:48.942 load on the main servers.

 

00:01:51.300 Rather than keeping a local copy of

00:01:53.535 the file, the customer gives it to

00:01:55.769 the CDN and links to the copy

00:01:58.004 hosted by the CDN. And this reduces

00:02:00.239 the load on the customer, and puts

00:02:02.474 the load onto the CDN.

 

00:02:04.170 The idea is that the CDNs are

00:02:06.710 big enough, and have enough caches in

00:02:09.251 enough data centres and enough edge networks,

00:02:11.791 that this spreads the load throughout the

00:02:14.331 world, and prevents from being overloaded for

00:02:16.871 high traffic sites.

 

00:02:18.060 It reduces latency for the requests,

00:02:20.714 because the CDN will have a cache

00:02:23.811 near to the person making the request,

00:02:26.908 and

 

00:02:27.450 can sprinkle around the world. And it

00:02:30.534 reduces the chances of a successful denial

00:02:33.618 of service attack,

 

00:02:35.040 again just because of the sheer size

00:02:37.719 of the CDN, and the sheer number

00:02:40.399 of caches it has.

 

00:02:42.030 And there are many commercial CDNs available,

00:02:44.312 I think the big three of those

00:02:46.594 are listed on the slide, but there

00:02:48.876 are certainly many others.

 

00:02:50.280 And many large organisations also run their

00:02:53.714 own CDNs. In particular, that the so-called

00:02:57.148 hypergiants, big companies such as Google,

00:03:00.092 Facebook, Netflix, Apple, and the like,

00:03:03.035 all run their own large-scale content distribution

00:03:06.469 networks.

 

00:03:12.030 The goal of CDNs is to distribute

00:03:15.994 load. They distribute load by caching content

00:03:19.958 all around the world, and by answering

00:03:23.922 most requests from a local cache.

 

00:03:27.420 And, in order to do that,

00:03:30.103 they need to have servers located everywhere.

00:03:33.234 They need to be very large,

00:03:35.917 and have very wide geographical distribution.

 

00:03:38.700 This means they need a large-scale investments,

00:03:43.011 large-scale cooperation with network operators, with ISPs,

00:03:47.322 with Internet exchange points, with data centres,

00:03:51.632 and the like.

 

00:03:53.580 And they try to host caches as

00:03:56.995 near to the customers as they can.

 

00:04:00.510 And to give you an idea of

00:04:03.155 the scale of this, the picture at

00:04:05.800 the top, the top-right of the slide,

00:04:08.445 comes from Netflix, and shows the reach

00:04:11.091 of their caches, their CDN.

 

00:04:13.080 And we see that they’re located,

 

00:04:15.750 primarily, in North America and Europe,

00:04:18.954 and to a lesser extent in South

00:04:22.693 America, where the customers of Netflix are

00:04:26.431 located. But we do see that are

 

00:04:30.270 massive numbers of servers in those regions,

00:04:34.661 and also servers in Australia, New Zealand,

00:04:39.053 Japan,

 

00:04:39.780 Singapore, the Middle East, South Africa,

00:04:42.889 and so on, to try and get

00:04:46.517 some more geographic spread.

 

00:04:48.690 And the statistics from Akamai, they boast

00:04:52.402 that they have more than 240,000 servers

00:04:56.115 in over 150 countries So these are

00:04:59.827 very large scale, very widely distributed,

00:05:03.009 server networks.

 

00:05:04.170 And they often get this benefit by

00:05:08.332 hosting servers within edge ISP’s networks.

 

00:05:12.000 So an ISP, such as Virgin Media

00:05:15.810 in the UK, would almost certainly be

00:05:19.619 hosting CDN caches for Netflix, Akamai,

00:05:22.885 and the various other big CDNs.

 

00:05:26.250 And there’s a mutual benefit for an

00:05:28.759 ISP to hosts such a cache;

00:05:30.909 there's a mutual benefit from the ISP

00:05:33.418 to work with a CDN.

 

00:05:35.310 And, clearly, from the CDNs point of

00:05:37.596 view, it increases the reach and the

00:05:39.882 robustness of the CDN, if they can

00:05:42.168 put caches in as many networks as

00:05:44.453 possible.

 

00:05:44.880 From the ISP’s point of view,

00:05:47.061 though, it reduces the load on their

00:05:49.606 network.

 

00:05:50.070 The CDN can push one copy of

00:05:53.192 a file into the cache, and it

00:05:56.314 can then distribute it to the other

00:05:59.436 customers of that ISP.

 

00:06:01.320 And it means that all of that

00:06:03.269 load is then served from within the

00:06:05.217 ISP’s network, without having to go over

00:06:07.166 the expensive wide-area links to the rest

00:06:09.115 of the Internet.

 

00:06:10.050 And this avoid overloading the links from

00:06:13.082 the ISP to the outside world.

 

00:06:15.780 And the scale of some of the

00:06:19.720 popular services means that this is necessary.

 

00:06:23.760 Netflix, for example, talk about how they

00:06:26.504 distribute 10s of terabits of video per

00:06:29.248 second, and this clearly isn't possible from

00:06:31.992 a single data centre.

 

00:06:33.660 It has to be pushed out in

00:06:35.696 a hierarchy, with the central data centre

00:06:37.732 pushing data out to a CDN,

00:06:39.478 which pushes it out to edge caches,

00:06:41.514 which distribute to the customers. You can't

00:06:43.550 host all of this from a single

00:06:45.587 data centre, from a single site,

00:06:47.332 you have to spread the load around

00:06:49.368 the world.

 

00:06:54.900 The other benefit of CDNs is that

00:06:57.980 they reduce latency.

 

00:06:59.400 The goal is that the content is

00:07:02.707 not only spread geographically for load balancing

00:07:06.014 reasons, but it’s spread geographically so that

00:07:09.321 there's always a local copy near to

00:07:12.628 the person requesting the data.

 

00:07:15.090 That means when you request content from

00:07:18.947 a popular site,

 

00:07:20.700 if you're based in Europe and your

00:07:23.472 request content from a popular site,

00:07:25.849 it doesn't have to go to the

00:07:28.621 US where the site is based,

00:07:30.997 but can be answered, but the request

00:07:33.770 can be answered, from a CDN cache

00:07:36.542 located in Europe.

 

00:07:37.830 And this reduces the latency for your

00:07:40.989 requests, because it can be cached near

00:07:44.147 to you.

 

00:07:45.150 But, of course, it requires a global

00:07:48.504 distribution of the proxy caches.

 

00:07:51.000 And, I think, one of the questions

00:07:53.804 here is how effectively CDNs are managing

00:07:56.607 to serve the entire world?

 

00:07:58.710 If we look at this picture,

00:08:00.997 from Netflix, we see that if you're

00:08:03.665 in Europe or North America, that there

00:08:06.333 are certainly many CDN caches, and there

00:08:09.001 will be one located very near to

00:08:11.669 you.

 

00:08:12.150 And if you're located in certain parts

00:08:15.416 of South America, if you're located in

00:08:18.682 the populous bit of Western Australia,

00:08:21.481 if you're located in Singapore, or in

00:08:24.747 Japan, or somewhere like that,

 

00:08:27.180 there'll be a CDN near to you.

 

00:08:31.440 If you're in Africa, though,

 

00:08:34.740 you’re perhaps less well served. If you're

00:08:37.597 in large parts of Asia, you’re less

00:08:40.454 well served.

 

00:08:41.370 And, increasingly, providing Internet access to developing

00:08:44.985 regions of the world needs more than

00:08:48.601 just providing connectivity.

 

00:08:50.250 If you want to provide high-quality Internet

00:08:52.679 access to parts of Africa, for example,

00:08:55.107 or parts of Asia which don't have

00:08:57.536 it yet, you don't just need to

00:08:59.964 provide bandwidth, you don't just need to

00:09:02.393 provide network links, you need to provide

00:09:04.821 data centres that can host CDN caches.

 

00:09:07.350 So it's increasing the investment needed to

00:09:15.722 get good performance.

 

00:09:19.410 And this works for cacheable static content.

00:09:22.747 CDNs have historically been focused on video,

00:09:26.083 and images, and software updates, and distributing

00:09:29.420 large files, and they work incredibly well

00:09:32.757 for that.

 

00:09:33.810 But we're also starting to see people

00:09:36.709 talk about edge compute applications.

 

00:09:38.880 And applications where there is some sort

00:09:41.727 of computation going on near to the

00:09:44.573 customer. And this tends to be for

 

00:09:47.520 augmented reality games, and applications like that,

00:09:50.677 where you need low latency to the

00:09:53.835 compute server, the data centre.

 

00:09:56.190 And again CDNs, are starting to host

00:09:58.794 this sort of content, starting to allow

00:10:01.399 compute to be pushed into the edges.

00:10:04.003 And, again, this means that they don't

00:10:06.607 just need caching and data storage at

00:10:09.212 the edges, but they need large scale

00:10:11.816 computing infrastructure.

 

00:10:12.660 Again, developed parts of the world this

00:10:16.379 is eminently achievable. In developing, in less

00:10:20.097 well-developed parts of the world, this infrastructure

00:10:23.816 isn't yet there.

 

00:10:30.330 So, how do the CDNs work? How

00:10:33.454 do they find the nearest node in

00:10:36.578 order to deliver the content? I mean

00:10:39.702 actually delivering the content is easy,

 

00:10:42.480 a CDN node is just a web

00:10:45.122 server which has the files located on

00:10:47.764 it, and it just delivers them using

00:10:50.406 HTTP. The question is how you find

00:10:53.048 the right CDN node, that has the

00:10:55.690 file you're looking for.

 

00:10:57.300 There’s two ways they do it.

00:10:59.755 Some of them use the DNS,

00:11:02.210 and some of them use a technique

00:11:05.073 known as anycast routing.

 

00:11:06.810 For the CDNs they use the DNS,

00:11:10.299 the goal is that they locate the

00:11:13.788 nearest CDN node based on,

 

00:11:16.380 and give you an answer for where

00:11:20.008 that node is, by playing games with

00:11:23.635 the DNS queries.

 

00:11:25.290 So in this case, when a customer

00:11:28.336 of the CDN gives a resource to

00:11:31.383 the CDN to be hosted, the CDN

00:11:34.429 gives that resources unique domain name.

 

00:11:37.140 For example, if the site example.com is

00:11:40.657 trying to host an image of a

00:11:44.174 kitten on a CDN, the CDN would

00:11:47.691 give that a unique hostname. And in

00:11:51.208 this case, it’s picked a

 

00:11:53.820 hexadecimal name, 9BC1C…. etc.

 

00:12:00.510 But the point is that every image,

00:12:03.059 every resource, every file on the CDN,

00:12:05.609 has a unique host name.

 

00:12:07.530 Now, of course, they don't alway refer

00:12:10.335 to real hosts. They’re all entries in

00:12:13.139 the DNS which point to a particular

00:12:15.944 server in the cache, but it gives

00:12:18.749 the flexibility.

 

00:12:19.650 Because every file, every image, every piece

00:12:22.947 of content, on the CDN has a

00:12:26.245 different hostname, the CDN can return a

00:12:29.542 different IP address for each image,

00:12:32.368 each file, and it can point it

00:12:35.666 at an appropriate replica.

 

00:12:37.650 So, the way this works is that

00:12:40.674 the CDN returns different answers to the

00:12:43.699 DNS queries for the A or AAAA

00:12:46.723 records for the names, depending on where

00:12:49.747 they're being requested from, and what CDN

00:12:52.772 caches have that data.

 

00:12:54.600 So it looks at the IP address

00:12:57.179 of the resolver making the query.

 

00:12:59.490 And the CDN,

 

00:13:02.520 when it gets the name look-up for

00:13:06.317 this

 

00:13:06.960 host, redirects it by returning a different

00:13:10.399 IP address that refers to a local

00:13:13.839 cache.

 

00:13:14.430 And if I look up

 

00:13:16.980 this name from my home, I might

00:13:19.963 get particular CDN cache located in the

00:13:22.946 ISP I have, and if you make

00:13:25.929 the same look-up from your home,

00:13:28.486 in a different ISP’s network, you’ll get

00:13:31.469 a different IP address back for that

00:13:34.452 name, pointing to a different cache that's

00:13:37.435 hosted by the CDN.

 

00:13:39.240 And this is based on the IP

00:13:42.090 address of the resolver, because all the

00:13:44.939 CDN sees is the requests coming from

00:13:47.789 the local resolvers.

 

00:13:49.110 But the DNS resolver has an extension

00:13:51.639 called DNS client subnet extension, so if

00:13:54.168 the client is not in the same

00:13:56.697 place as the resolver, the resolver can

00:13:59.226 tell the CDN the IP address where

00:14:01.755 the client came from.

 

00:14:03.300 And the CDN has to look-up the

00:14:05.277 IP address where it sees the requests

00:14:07.255 coming from, that of the resolver or

00:14:09.232 that of the client with the client

00:14:11.210 subnet extension, and try and guess where

00:14:13.187 in the world it is.

 

00:14:14.700 It needs to look-up the IP address,

00:14:17.636 and have a mapping of IP addresses

00:14:20.571 to locations.

 

00:14:21.510 And this doesn't need to be particularly

00:14:23.971 accurate. The goal is to figure out

00:14:26.433 if you're in the UK, and direct

00:14:28.894 to the cache based in London,

00:14:31.004 rather than the cache based in New

00:14:33.465 York, for example.

 

00:14:34.620 It doesn’t really care if it realises

00:14:37.106 that you're in Glasgow, or Manchester,

00:14:39.237 or wherever, the main thing is it

00:14:41.723 knows that you're in the UK,

00:14:43.854 so you should go to UK-based cache.

 

00:14:46.440 And this gives the CDN very fine-grained

00:14:49.555 control. It can put the time-to-live on

00:14:52.670 its DNS responses down to be a

00:14:55.785 small number of seconds, so

 

00:14:58.110 every time a client looks up an

00:15:00.686 image, for every different image, every different

00:15:03.263 resource the CDN is hosting, it can

00:15:05.839 return a different answer. So it can

00:15:08.416 very rapidly load balance among it’s different

00:15:10.992 caches,

 

00:15:11.460 amongst it’s different data centres. But it

00:15:13.434 puts a high load on the DNS,

00:15:15.408 it means there's lots of DNS queries

00:15:17.382 happening, and they can't be cached for

00:15:19.356 very long.

 

00:15:25.560 The other approach CDNs use, is known

00:15:30.803 as anycast routing.

 

00:15:33.150 And this doesn't play games with DNS,

00:15:36.382 it uses the DNS in a much

00:15:39.615 more traditional way.

 

00:15:41.100 In that

 

00:15:43.170 the DNS names for the CDN always

00:15:46.189 the same; they always just refer to

00:15:49.208 the CDN. And they always return the

00:15:52.227 same answer.

 

00:15:53.190 And what it does is, each resource

00:15:56.212 the CDN is hosting, it gives it

00:15:59.235 a different filename.

 

00:16:00.630 And the DNS name always maps to

00:16:03.751 the same IP address. Literally, it always

00:16:06.872 maps to the same IP address.

00:16:09.547 And in this example,

 

00:16:11.430 the CDN has three data centres,

00:16:15.964 all of which are using IP address

00:16:21.254 192.0.2.4.

 

00:16:22.110 And the CDN has many data centres

00:16:24.728 around the world, and they all use

00:16:27.347 the same IP address ranges. And they

00:16:29.965 advertise those IP address ranges into the

00:16:32.583 routing system, into the BGP routing system

00:16:35.202 we’ll talk about in the next part.

 

00:16:37.920 And the Internet routing then ensures that

00:16:40.708 the traffic goes to the closest data

00:16:43.495 centre to source.

 

00:16:44.790 By advertising the same IP address into

00:16:47.606 the routing from multiple places, the routing

00:16:50.422 system makes sure that the traffic goes

00:16:53.238 to the nearest data centre.

 

00:16:55.350 And it's an abuse of routing.

00:16:58.125 It's intentionally advertising the same IP address

00:17:01.362 from multiple places,

 

00:17:02.850 letting the routing take care of how

00:17:06.891 the data gets there.

 

00:17:09.300 Which approach do CDNs use? Probably a

00:17:14.039 mix of both.

 

00:17:16.170 Some of the large ones just use

00:17:18.578 the DNS-based approach, some of them use

00:17:20.985 a mix of both approaches, and both

00:17:23.393 approaches work, and they have different trade-offs.

 

00:17:29.850 So that's what I want to say

00:17:33.025 about CDNs. The goal of CDNs is

00:17:36.201 to provide load balancing and to reduce

00:17:39.376 latency, by allowing responses for web content

00:17:42.551 to be redirected from the original sites

00:17:45.727 to the content distribution network, which in

00:17:48.902 turn hosts that content at

 

00:17:51.270 numerous locations around the world which are,

00:17:54.385 hopefully, are close to the end users.

 

00:17:57.600 And it can be implemented by playing

00:18:00.097 tricks with the DNS where, depending on

00:18:02.595 where you make the DNS lookup you

00:18:05.092 get a different answer back locating you

00:18:07.590 to local cache,

 

00:18:08.760 or it can be implemented using anycast

00:18:11.394 routing, where the caches all have the

00:18:14.028 same IP address and the routing system

00:18:16.662 takes you to the nearest replica.

 

00:18:19.020 In the next part, I'll talk about

00:18:21.342 how the routing system, the BGP routing.

00:18:23.663 works in the Internet.

Part 2: Inter-domain Routing

The second part of the lecture introduces the inter-domain routing problem. It reviews the network-of-networks nature of the Internet, and the concept of Autonomous Systems (ASes), and introduces the AS graph and BGP as the basis for inter-domain routing. The differences between routing at the edges and in the core of the network is discussed, as is the role of the default-free zone and Internet Exchange Points. The operation of BGP as a path vector protocol, choosing shortest policy compliant path is reviewed; including a discussion of routing policy, the Gao-Rexford rules, and the BGP decision process.

00:00:00.000 In this part I'd like to talk

00:00:02.853 about routing in the Internet, in particular

00:00:05.707 the idea of interdomain routing, routing between

00:00:08.560 networks, between autonomous systems.

 

00:00:10.291 I’ll talk about what is an autonomous

00:00:12.694 system. I’ll talk about the AS graph,

00:00:15.098 the graph of interconnections between networks that

00:00:17.501 form the Internet.

 

00:00:18.631 I’ll talk about how routing works at

00:00:20.758 the edges, and in the core of

00:00:22.885 the network. And I’ll talk about the

00:00:25.012 Border Gateway Protocol, BGP, which enables routing

00:00:27.139 in the Internet.

 

00:00:31.441 The Internet is a network of networks.

 

00:00:36.931 Fundamentally it's built as a set of

00:00:41.158 independently owned, independently operated, networks which

 

00:00:44.881 talk with each other, and which collaborate

00:00:48.318 to deliver data.

 

00:00:49.891 Each of these networks is what's known

00:00:52.571 as an autonomous system. It operates independently.

 

00:00:55.351 And each network is a separate routing

00:00:58.288 domain. It makes its own decisions internally

00:01:01.225 how to route data around its own

00:01:04.161 network.

 

00:01:04.681 The problem of interdomain routing is the

00:01:07.349 problem of finding the best path across

00:01:10.018 this set of networks. It’s the problem

00:01:12.686 of finding the best path from the

00:01:15.354 source network to the destination network,

00:01:17.641 treating the set of networks as a

00:01:20.310 graph.

 

00:01:20.791 So, it's not finding the best hop-by-hop

00:01:23.762 path through the network, it’s finding the

00:01:26.733 best path between the set of networks

00:01:29.703 that comprise the Internet.

 

00:01:31.501 It treats each network in the Internet

00:01:34.102 as a node on the graph,

00:01:36.331 what’s known as the AS topology graph,

00:01:38.931 and it treats the connections between the

00:01:41.532 networks as edges in the graph.

 

00:01:43.861 And it's trying to find the best

00:01:45.929 set of networks to choose, to get

00:01:47.997 from the source to the destination across

00:01:50.065 the AS graph.

 

00:01:54.091 As I said, the Internet is a

00:01:57.734 network of networks. Each of these networks,

00:02:01.377 each autonomous system, is independently owned and

00:02:05.021 operated.

 

00:02:05.641 And the Internet routing system, the Border

00:02:09.254 Gateway Protocol, operates based on this idea

00:02:12.867 of autonomous systems, ASes.

 

00:02:15.031 And an AS is an Internet service

00:02:19.537 provider,

 

00:02:20.281 or some other organisation that operates a

00:02:22.980 network, and that wants to participate in

00:02:25.680 the routing.

 

00:02:26.551 The University of Glasgow is an autonomous

00:02:29.889 system in routing terms, for example.

 

00:02:32.851 As would be that the various residential

00:02:35.822 ISPs, Virgin Media or BT or Talk

00:02:38.794 Talk would be autonomous systems. But so

00:02:41.765 are large companies, Facebook, and Google,

00:02:44.312 and the like are also autonomous systems

00:02:47.283 in the routing sense.

 

00:02:49.081 Some of these organisations operate more than

00:02:52.434 one autonomous system,

 

00:02:53.971 perhaps because they've bought other companies which

00:02:57.481 were themselves autonomous systems, or perhaps just

00:03:00.990 split their network up for ease of

00:03:04.500 administration.

 

00:03:05.101 Autonomous systems are identified by unique numbers,

00:03:08.111 are known as AS numbers, and these

00:03:11.121 are allocated to them by the Regional

00:03:14.131 Internet Registries.

 

00:03:15.091 The AS numbers don't really have any

00:03:18.270 meaning, except that they provide a unique

00:03:21.450 identifier for each autonomous system.

 

00:03:23.821 Essentially, they start at one, and they

00:03:26.380 go up.

 

00:03:27.211 and each new organisation, each new network,

00:03:30.210 to join the Internet routing system gets

00:03:33.210 assigned the next autonomous system number.

 

00:03:35.881 As of March 2021 there are about

00:03:39.594 115,000 autonomous systems in the Internet,

00:03:42.777 about 115,000 autonomous system numbers have been

00:03:46.491 allocated, and about 71,000 of those are

00:03:50.204 advertised in BGP, which means about 71,000

00:03:53.917 of them are active in the Internet

00:03:57.631 routing.

 

00:03:58.261 And the completely unreadable graph on the

00:04:00.544 right of the slide shows the growth

00:04:02.827 in the number of ASes advertised into

00:04:05.110 the routing system over time.

 

00:04:06.841 And there are some links on the

00:04:09.462 slide, if you want to find the

00:04:12.083 list of AS numbers, and the details

00:04:14.704 of the current AS number allocations.

 

00:04:21.991 When we talk about Internet routing,

00:04:24.351 we talk a lot about the AS

00:04:27.104 topology graph.

 

00:04:27.991 And this is the set of interconnections

00:04:30.869 between the ASes. The set of interconnections

00:04:33.748 between the autonomous systems, between the networks,

00:04:36.626 that form the Internet.

 

00:04:38.371 And the AS topology graph is formed

00:04:41.690 by treating each node, each network,

00:04:44.534 each autonomous system as a node in

00:04:47.853 the graph.

 

00:04:48.901 And the interconnections show the links between

00:04:52.015 the different networks, they show the different

00:04:55.128 ways in which traffic can pass between

00:04:58.242 these independently operated networks.

 

00:05:00.121 The picture we see on the slide

00:05:03.188 here is a visualisation of that graph,

00:05:06.256 produced by an organisation known as CAIDA,

00:05:09.323 the Cooperative Association for Internet Data Analysis,

00:05:12.391 which operates out of the University of

00:05:15.458 California, in San Diego.

 

00:05:17.311 And the way this works is that

00:05:19.522 each point on this graph is a

00:05:21.733 network, each point on the graph is

00:05:23.943 an autonomous system.

 

00:05:24.991 And the position around the circle is

00:05:28.125 done based on geography, so it's based

00:05:31.258 on geographic location.

 

00:05:32.701 And the distance from the centre towards

00:05:36.199 the edge of the circle is based

00:05:39.696 on number of connections that network,

00:05:42.694 that autonomous system, has to the rest

00:05:46.192 of the network.

 

00:05:47.791 A network that has very few connections

00:05:49.982 to other networks will appear at the

00:05:52.172 edge, whereas a network that has very

00:05:54.363 many connections to other networks will appear

00:05:56.553 in the middle of the graph.

 

00:05:58.531 And, as I say, it's arranged geographically,

00:06:00.787 and it’s perhaps a little hard to

00:06:03.042 read. At about the eight o'clock position,

00:06:05.298 and going around anticlockwise, if we start

00:06:07.553 at the eight o'clock position we see

00:06:09.809 Hawaii.

 

00:06:10.231 And, towards the bottom at about the

00:06:13.124 seven o'clock, position you've got San Diego,

00:06:16.018 and Los Angeles, and working the way

00:06:18.911 through the US,

 

00:06:20.251 rounds to New York and so on,

00:06:23.868 about the four o'clock position.

 

00:06:26.551 The gap is the Atlantic Ocean,

00:06:28.730 and then from around the three o'clock

00:06:31.273 position, to about one o'clock, you see

00:06:33.816 we're working the way through Europe,

00:06:35.995 and the labels show the various European

00:06:38.538 cities.

 

00:06:39.001 And it works its way around,

00:06:42.552 through Asia, and the Far East,

00:06:46.103 and back to Hawaii.

 

00:06:48.571 And we see, as you might expect,

00:06:51.766 the richness of the interconnections varies geographically,

00:06:54.961 based on where the people live,

00:06:57.700 and based on, to some extent,

00:07:00.439 how developed the countries are.

 

00:07:02.821 There's a lot of networks at the

00:07:05.659 edges, and there's a significant number,

 

00:07:08.191 a smaller but significant number, a richly

00:07:11.615 connected topology in the core.

 

00:07:14.161 And that’s what you'd expect. That the

00:07:17.517 very large Internet companies, Facebook, and Google,

00:07:20.872 and Apple,

 

00:07:21.931 and the content distribution networks, like Akamai

00:07:25.145 and so on, are all in the

00:07:28.359 middle, interconnecting to everyone. And then there's

00:07:31.573 lots of networks around the edges,

00:07:34.328 which just provide Internet access in particular

00:07:37.542 regions.

 

00:07:38.101 And this is showing the potential ways

00:07:41.162 that the traffic can flow. It’s showing

00:07:44.224 the interconnections between the autonomous systems,

00:07:46.848 between networks. So, it's giving potential routes

00:07:49.910 which traffic can flow through the network.

 

00:07:53.071 And this graph is for IPv4.

 

00:07:56.611 You can do the same thing for

00:07:59.463 IPv6, as we see on this slide,

00:08:02.315 and as you would expect, perhaps,

00:08:04.760 the IPv6 graph is somewhat sparser and

00:08:07.612 perhaps a bit easier to read,

00:08:10.056 because the IPv6 network is smaller.

 

00:08:12.601 Tt's developing in the same way,

00:08:15.498 though.

 

00:08:16.081 If you look at the historic data

00:08:18.545 for the IPv4 graph, the IPv6 graph

00:08:21.009 is following the same trajectory as the

00:08:23.473 IPv4 Internet did, it’s just a few

00:08:25.937 years behind.

 

00:08:30.811 And in this slide, this is data

00:08:33.803 from Google. It’s plotting the fraction of

00:08:36.794 connections going to Google that

 

00:08:39.031 use IPv6. We see that about a

00:08:42.308 third of the traffic to Google is

00:08:45.584 using IPv6, and that matches-up with the

00:08:48.861 graphs on the previous slide.

 

00:08:51.301 The IPv6 network is a lot less

00:08:54.393 well developed, it's a much sparser topology

00:08:57.485 compared with IPv4, and there's less traffic

00:09:00.578 using it.

 

00:09:01.561 But I think that's what you'd expect.

00:09:04.099 IPv4 has had 30 years head-start on

00:09:06.636 deployment. Of course it's going to be

00:09:09.174 much more densely interconnected, of course there's

00:09:11.711 going to be much more IPv4 traffic

00:09:14.249 than IPv6 traffic. But IPv6 is developing,

00:09:16.786 it’s growing at a similar rate.

 

00:09:23.491 So how do we route traffic around

00:09:26.849 this graph? Given that mass of interconnections

00:09:30.208 we saw in the previous slides,

00:09:33.086 essentially a completely unreadable mass of interconnections,

00:09:36.445 with so many networks, so many interconnections,

00:09:39.803 how do we route traffic around the

00:09:43.161 network?

 

00:09:43.741 Well, at the edges of the network,

00:09:46.465 this is very straightforward.

 

00:09:48.121 Devices at the edge of the network

00:09:51.206 tend to have really simple routing tables.

 

00:09:54.391 If you look at machines in the

00:09:57.584 network in the Computing Science Department of

00:10:00.777 the University, for example,

 

00:10:02.701 all the machines in Computing Science have

00:10:06.860 IP addresses in the range

 

00:10:09.931 130.209.240.0/20.

 

00:10:12.181 They all have IPv4 addresses where the

00:10:16.768 first 20 bits of the address match

00:10:21.356 130.209.240.0,

 

00:10:22.111 and the last 12 bits identify the

00:10:25.616 particular machine on the Computing Science network.

 

00:10:29.221 And their routing table just says,

00:10:32.390 if the machine is on

 

00:10:35.131 the Computing Science network put it out

00:10:37.673 onto the local ethernet, and it will

00:10:40.215 be delivered.

 

00:10:41.041 If it's got an IP address in

00:10:44.767 the range

 

00:10:45.931 130.209.240.0/20

 

00:10:47.371 put it out on to the local

00:10:49.887 Ethernet, and it will be delivered to

00:10:52.403 the machine directly.

 

00:10:53.581 And then it has what's known as

00:10:56.954 a default entry, which says if it

00:11:00.327 has any other IP address, send it

00:11:03.700 to machine with IP address 130.209.240.48.

 

00:11:06.691 And machine 130.209.240.48

 

00:11:10.051 Is the router at the edge of

00:11:12.868 the Computer Science Department. It’s the router

00:11:15.685 which connects Computing Science to the rest

00:11:18.502 of campus, and from then on to

00:11:21.319 the rest of the Internet.

 

00:11:23.431 And routing at the edges is often

00:11:25.829 like this. The routing table specifies “this

00:11:28.228 is the local network” and says in

00:11:30.626 order to send to any machines on

00:11:33.024 this network, just put it out onto

00:11:35.423 the Ethernet, or on to the WiFi,

 

00:11:37.921 and they're all directly connected. And anything

00:11:40.681 else, send it over there. And “over

00:11:43.440 there” is the router that connects to

00:11:46.200 the rest of the network.

 

00:11:48.271 If you look at the routing tables

00:11:50.958 on machines in your home, you will

00:11:53.645 see something similar. And, most likely,

00:11:55.948 you have a private network, you're behind

00:11:58.636 a network address translator,

 

00:12:00.271 and the routing table will say the

00:12:03.488 network is 192.168.0.0/16, and that's on your

00:12:06.705 local WiFi, and anything else you send

00:12:09.922 to, probably, machine 192.168.0.1, which will be

00:12:13.139 the WiFi base station which will,

00:12:15.896 in turn, send it out to the

00:12:19.113 rest of the Internet.

 

00:12:24.871 Routing at the edges is straightforward.

 

00:12:29.491 Routing, as you get nearer the core

00:12:32.442 of the network, gets more complex.

 

00:12:35.071 We saw at the edges, the networks

00:12:37.344 can just have a default route that

00:12:39.617 points up towards the core.

 

00:12:41.341 We see it at the bottom-right of

00:12:43.888 the figure on the slide here.

 

00:12:46.171 Where there’s some network at the edge,

00:12:48.641 which has a couple of its customers.

 

00:12:51.211 it has links to a couple of

00:12:54.048 customer networks, with the red arrows pointing

00:12:56.886 inwards,

 

00:12:57.391 and

 

00:13:00.001 it knows what are the address ranges

00:13:03.336 assigned to those customers.

 

00:13:05.341 So it knows that if it's got

00:13:07.801 traffic to those address ranges, it can

00:13:10.262 route it down those links to those

00:13:12.722 customers. But it can have a default

00:13:15.183 route that says “for anything else,

00:13:17.292 anyone other than these two customers,

00:13:19.401 send it out towards the wider Internet”.

 

00:13:21.961 And, at the edges, this sort of

00:13:24.696 default based approach works quite well,

00:13:27.039 because there's only a small part of

00:13:29.774 the network which is known, and everything

00:13:32.508 else is “out there”.

 

00:13:34.171 As you get into the core,

00:13:36.940 though,

 

00:13:37.501 the networks tend to need more-and-more information.

 

00:13:42.151 And, eventually, you end up in a

00:13:44.601 region of the network which is known

00:13:47.051 as the “default free zone”.

 

00:13:48.901 And the default free zone is that

00:13:51.390 part of the network which is so

00:13:53.880 richly interconnected

 

00:13:54.691 that it stops being able to say

00:13:57.216 “send it over there to be delivered”,

00:13:59.742 because it's the part of the network

00:14:02.267 those people send it to.

 

00:14:04.171 It can't say send it towards the

00:14:06.382 middle of the Internet to be delivered,

00:14:08.594 because it is the middle of the

00:14:10.805 Internet.

 

00:14:11.221 And this large core of autonomous systems

00:14:14.368 in the middle of the network,

00:14:17.066 has to keep track of essentially the

00:14:20.214 whole Internet topology, the whole AS graph.

 

00:14:23.461 So they need to store all the

00:14:25.611 paths, to all the autonomous systems in

00:14:27.760 the network, to figure out how they

00:14:29.910 can deliver data.

 

00:14:30.931 They need to keep a map of,

00:14:33.145 essentially, the entire Internet topology. And from

00:14:35.359 that, they can decide which way to

00:14:37.574 send the packets, which network to send

00:14:39.788 the packets to next, in order that

00:14:42.002 they get delivered.

 

00:14:48.271 Over time, the topology, the AS graph,

00:14:52.290 is gradually getting more complex.

 

00:14:55.261 It started out being relatively simple,

00:14:57.901 like you see on the left of

00:15:00.981 the slide here.

 

00:15:02.401 There were ISPs at the edges,

00:15:05.845 which provided connectivity to particular regions.

00:15:09.289 They connected to regional ISPs, which provided

00:15:13.307 wider-area connectivity. And there were a small

00:15:17.325 number of network operators that provided long-distance

00:15:21.343 international connectivity.

 

00:15:22.591 And, over time, we've gradually seen more-and-more

00:15:25.949 links being added, the links shown in

00:15:29.306 red on the right, for example.

00:15:32.184 We're getting a lot more interconnections at

00:15:35.542 the regional level,

 

00:15:37.081 a lot denser interconnections at the edges.

 

00:15:41.431 The network’s getting more-and-more connected. The ISPs,

00:15:44.733 the network operators, the companies that form

00:15:48.035 the network, are gradually building more-and-more interconnections

00:15:51.338 between themselves.

 

00:15:52.381 And the traffic is less flowing up

00:15:54.514 towards the core, and then through this

00:15:56.648 small sets of long-distance providers, and then

00:15:58.781 back down,

 

00:15:59.491 and is increasingly going from the edges

00:16:02.569 up to some sort of regional transit

00:16:05.647 layer, or from the edges directly to

00:16:08.725 the destination network, without having to go

00:16:11.803 via these long-distance transit providers.

 

00:16:14.101 And we're seeing more

 

00:16:16.411 interconnection by large Internet companies, Google for

00:16:21.215 example, or the content distribution networks,

00:16:25.333 Akamai, CloudFlare, Fastly, and the like,

 

00:16:29.551 connecting at the regional level, connecting to

00:16:32.631 the edge ISPs directly, in order to

00:16:35.711 improve connectivity for their customers.

 

00:16:38.011 And we're seeing increasing numbers of what

00:16:41.042 are known as Internet Exchange Points.

00:16:43.640 Locations where network operators can come together

 

00:16:46.771 and interconnect themselves.

 

00:16:50.131 A prominent example of that, in this

00:16:53.587 country, is the London Internet Exchange,

00:16:56.550 where there's approximately 800-850 different networks,

00:16:59.512 all come together in a particular building,

00:17:02.968 that just connect their networks together.

 

00:17:06.031 And the picture shows it, as you

00:17:09.311 see it's just a regular office building.

 

00:17:12.691 If you go into one of these

00:17:15.280 places, what you find is that the

00:17:17.868 core of it is just an enormous

00:17:20.457 Ethernet switch. And all of the networks

00:17:23.045 bring their equipment in, and they all

00:17:25.634 plug-in to, essentially, a massive Ethernet which

00:17:28.222 allows them to just exchange traffic.

 

00:17:30.541 And the LINX, the London Internet Exchange,

00:17:33.468 talks about how it has several terabytes

00:17:36.394 per second of traffic flowing through it.

 

00:17:39.421 And this type of scale is pretty

00:17:42.127 commonplace. There’s tens, possibly hundreds, of these

00:17:44.833 in Europe, and many more of them

00:17:47.539 around the world. And they’re the points

00:17:50.245 at which this interconnection tends to happen.

 

00:17:59.941 The Internet, as we've said, is a

00:18:03.426 network of networks. The autonomous systems are

00:18:06.911 independently operated and, in many cases,

00:18:09.898 they are competitors.

 

00:18:11.491 If you think about the edges of

00:18:14.429 the network in the UK, for example,

00:18:17.368 you've got autonomous systems such as BT,

00:18:20.306 Virgin Media, Talk Talk, O2, and all

00:18:23.245 the others, all of which are competing

00:18:26.183 for business. They’re all competing to be

00:18:29.122 your Internet provider.

 

00:18:30.481 These autonomous systems have to cooperate to

00:18:33.418 deliver data between themselves, and deliver data

00:18:36.354 to the rest of the Internet,

 

00:18:38.971 but fundamentally they’re competitors.

 

00:18:42.811 They're competing for business, they're competing for

00:18:46.050 customers with each other.

 

00:18:48.001 And this is true at all of

00:18:50.768 the levels of the hierarchy. The autonomous

00:18:53.534 systems, the networks that comprise the Internet,

 

00:18:56.401 need to cooperate to make the Internet

00:18:59.811 work, but fundamentally they don't trust each

00:19:03.221 other. They’re competitors, they're operating in different

00:19:06.631 places, they have different goals, different values.

 

00:19:10.141 And, as a result, business and political

00:19:14.861 and economic relationships very much influence routing.

 

00:19:19.681 Internet routing, of course, is based on

00:19:22.979 what's the most efficient way to get

00:19:26.278 data to a particular destination, but it's

00:19:29.576 also based on policy.

 

00:19:31.561 And policy restrictions very much determine the

00:19:35.146 topology. They determine the interconnections between the

00:19:38.730 networks, and they determine which of those

00:19:42.315 interconnections are used.

 

00:19:43.951 And, at the coarsest sense, they determine

00:19:47.654 the interconnectivity, because they determine which networks

00:19:51.357 actually physically interconnect to each other.

 

00:19:54.631 Which of these networks actually have put

00:19:57.976 in place a physical link to allow

00:20:01.322 traffic to flow between themselves,

 

00:20:03.811 versus punting it up to some other

00:20:06.897 level of the hierarchy?

 

00:20:08.761 But also, once those links are in

00:20:11.315 place, who gets to use them? Which

00:20:13.870 traffic gets to flow over those links?

00:20:16.424 And not all of the traffic which

00:20:18.978 could flow over a particular link is

00:20:21.532 necessarily allowed to, depending on the policy

00:20:24.087 choices that have been made.

 

00:20:26.011 And these various policy choices might prioritise

00:20:29.738 traffic so that it goes over non-shortest

00:20:33.464 path routes, over not necessarily optimal routes.

 

00:20:37.291 Network operators might prioritise shortest path,

00:20:40.638 they might prioritise the lowest latency path

00:20:44.542 when they’re choosing a route.

 

00:20:47.431 But they might also prioritise the highest

00:20:49.873 bandwidth path.

 

00:20:50.671 Or the cheapest path.

 

00:20:53.641 Or they might have restrictions which prioritise

00:20:57.340 paths which avoid certain networks, or avoid

00:21:01.039 certain parts of the world.

 

00:21:03.781 They might be trying to avoid traffic

00:21:06.928 going through certain regions, or through certain

00:21:10.075 network operators, for political reasons or for

00:21:13.222 economic reasons.

 

00:21:14.221 And these policy considerations very much influence

00:21:16.566 the way Internet routing works.

 

00:21:24.451 The routing in the Internet operates using

00:21:27.708 a system known as the Border Gateway

00:21:30.966 Protocol.

 

00:21:31.531 There's two parts to the Border Gateway

00:21:34.185 Protocol, two parts to BGP.

 

00:21:36.181 External BGP and internal BGP.

 

00:21:40.651 External BGP provides the connectivity between autonomous

00:21:44.957 systems. It’s used by ASes to exchange

00:21:49.264 information with their neighbours, to tell them

00:21:53.570 which paths are available.

 

00:21:56.131 External BGP runs over TCP connections,

00:21:59.609 it runs over TCP connections between routers,

00:22:03.666 one in each autonomous system, so it

00:22:07.723 interconnects the autonomous systems.

 

00:22:10.141 And it allows those two autonomous systems

00:22:13.008 to exchange knowledge of the AS topology,

00:22:15.874 which they’ve filtered according to their policies.

 

00:22:18.841 External BGP is the way two autonomous

00:22:21.692 system will talk to each other,

00:22:24.136 to exchange information about the structure of

00:22:26.986 the network.

 

00:22:27.901 And from that they can compute

 

00:22:31.201 interdomain routes, they can compute the paths

00:22:35.606 that are available across the network.

 

00:22:39.481 Internal BGP is the part of BGP

00:22:42.413 that’s used within an autonomous system for

00:22:45.345 distributing that information to the other edge

00:22:48.276 routers, and for distributing that information to

00:22:51.208 the internal routers in that system.

 

00:22:53.821 Internal BGP allows an autonomous system to

00:22:57.725 coordinate routing information internally. It tells the

00:23:01.629 routers that comprise a network, how to

00:23:05.533 get to the edges, how to get

00:23:09.437 out to the rest of the world.

 

00:23:13.441 And external BGP is used for talking

00:23:15.894 between autonomous systems to coordinate their view

00:23:18.347 of what the rest of the world

00:23:20.800 looks like.

 

00:23:21.601 We’ll talk about intradomain routing, routing within

00:23:23.997 a network, in one of the later

00:23:26.393 parts. But for the rest of this

00:23:28.789 part of lecture, I want to talk

00:23:31.186 about external BGP, and how the routing

00:23:33.582 between autonomous systems works.

 

00:23:38.371 At the external BGP level,

 

00:23:41.911 the autonomous systems, the routers at the

00:23:45.147 edges of the autonomous systems, advertise out

00:23:48.383 IP address ranges, and advertise the AS

00:23:51.618 paths in order to get to those

00:23:54.854 IP address ranges.

 

00:23:56.341 And these combine to form what's known

00:23:58.816 as a routing table.

 

00:24:00.331 Essentially, you have a list of IP

00:24:03.263 address ranges, what’s known as a list

00:24:06.196 of prefixes, and for each prefix,

00:24:08.709 you have the list of autonomous systems

00:24:11.642 you need to get through to get

00:24:14.574 to that prefix.

 

00:24:15.931 And the table at the bottom,

00:24:18.128 is an example of a small part

00:24:20.690 of the Internet routing table.

 

00:24:22.621 And the whole thing is enormous.

00:24:24.271 The whole thing is

 

00:24:25.471 a few million lines of this.

00:24:27.799 And there's something like half-a-million prefixes being

00:24:30.516 advertised into the Internet, and each one

00:24:33.232 has multiple ways of getting to it,

00:24:35.948 so there are several million lines of

00:24:38.665 this data.

 

00:24:39.541 What we see, highlighted in yellow,

00:24:42.139 is the entries for a particular prefix.

 

00:24:45.271 In this case, it's the IP addresses

00:24:50.577 which match 12.10.231.0/24,

 

00:24:52.951 where the first 24 bits match 12.10.231.0.

 

00:25:00.241 and

 

00:25:02.431 in the middle the middle column,

00:25:05.167 the next hop column, we see that

00:25:08.360 there are seven different ways of getting

00:25:11.552 to that, via seven different next hop

00:25:14.745 routers.

 

00:25:15.301 And, for each of these, we see

00:25:17.672 an AS path which shows how to

00:25:20.043 get there.

 

00:25:20.821 So, for example, if you look at

00:25:23.901 the first line highlighted in yellow,

00:25:26.541 we see we can get to the

00:25:29.621 prefix 12.10.231.0/24

 

00:25:30.601 via next hop 194.68.130.254

 

00:25:36.721 If we send a packet destined to

00:25:39.551 that prefix, to that next top router,

 

00:25:42.481 it will go to the autonomous system

00:25:45.615 number 5459, which will send it to

00:25:48.750 5413, which will send it to 5696,

00:25:51.884 which will send it to 7369.

00:25:54.571 And 7369, because it’s at the end

00:25:57.705 of the AS path, is the one

00:26:00.840 that owns the prefix.

 

00:26:02.731 And “i” just means this was gathered

00:26:06.400 by internal BGP from some other autonomous

00:26:10.069 system. It’s been passed through this router

00:26:13.738 from one of other ASes in the

00:26:17.407 network.

 

00:26:18.031 And we see the next line,

 

00:26:20.461 if you send a packet to destined

00:26:25.232 for the same prefix, instead to the

00:26:30.003 router with IP address 158.43.133.48,

 

00:26:33.511 it will follow a longer path.

00:26:36.795 It will go via autonomous systems 1849,

00:26:40.627 702, 701, 6113, 5696, and eventually to

00:26:44.459 7369, the destination.

 

00:26:46.201 And so on.

 

00:26:48.391 And that line highlighted in red is

00:26:52.702 the preferred path. You send a packet

00:26:57.012 destined for prefix 12.10.231.0, and if you

00:27:01.323 send it to the next hop router

00:27:05.634 202.232.1.8, it will go via autonomous systems

00:27:09.944 2497, 5696, and then reach 7369 the

00:27:14.255 destination.

 

00:27:14.971 And the entire routing table comprises this

00:27:17.872 set of information. It's a list of

00:27:20.773 prefixes and next hops,

 

00:27:22.531 which routers this autonomous system can send

00:27:25.313 the data to next, in order to

00:27:28.095 make its way towards that destination,

00:27:30.480 and the AS paths it will take,

00:27:33.262 the packets will take, if it sends

00:27:36.044 them to that next hop.

 

00:27:38.131 What are the next hop IP addresses?

00:27:41.106 They’re the IP addresses of the routers

00:27:44.081 this autonomous system peers with in its

00:27:47.056 neighbours.

 

00:27:47.581 The particular autonomous system I’ve taken this

00:27:52.028 routing table from, connects to a router

00:27:56.475 with IP address 202.231.1.8, and that router

00:28:00.923 is in one of its neighbours,

00:28:04.734 it's in autonomous system 2497.

 

00:28:08.011 And it knows that if it sends

00:28:11.222 to that next hop, it will work

00:28:14.432 its way through autonomous systems 2497,

00:28:17.184 and 5696, and 7369 which owns the

00:28:20.395 destination IP address.

 

00:28:21.871 And let's just repeats, for prefix,

00:28:24.019 after prefix, after prefix.

 

00:28:29.071 Now.

 

00:28:30.601 You can extract this information, and you

00:28:32.539 can plot, it and you can form

00:28:34.477 a graph.

 

00:28:35.131 And

 

00:28:36.901 the figure we see on the left

00:28:39.821 here, shows the view of the network

 

00:28:42.841 from the point where this routing table

00:28:45.366 was gathered, which is the autonomous system

00:28:47.892 highlighted in green, showing the interconnections we

00:28:50.417 found to all the others.

 

00:28:52.321 And all this is doing, is showing

00:28:55.069 each pair of adjacent autonomous systems on

00:28:57.818 the path are connected together.

 

00:28:59.881 So, if we look at the first

00:29:04.994 line, we see we can reach need

00:29:10.107 the prefix 12.10.231.0 via autonomous systems 5459,

00:29:15.219 5413, 5696, and 7369.

 

00:29:18.241 And, we see from the node in

00:29:20.733 green, if we get up at about

00:29:23.226 the 10 o'clock position and around,

00:29:25.362 we follow the autonomous systems around,

00:29:27.499 we see this path through the network.

 

00:29:30.091 And if you look at each line

00:29:32.501 in turn, and look at the AS

00:29:34.912 paths, so you'll see I’ve just connected

00:29:37.322 the adjacent ASes together. And it gives

00:29:39.732 you this map, this part of the

00:29:42.142 Internet topology.

 

00:29:42.931 And the arrows in a red show

00:29:46.140 the preferred paths, which are highlighted

 

00:29:48.991 on the segment of the routing table.

 

00:29:51.751 You can see we’re starting to build

00:29:53.915 up the AS graph. We’re starting to

00:29:56.078 build up a map of the topology

00:29:58.242 graph.

 

00:29:58.651 And, if you do this for the

00:30:00.957 entire graph, if you take the entire

00:30:03.262 set of

 

00:30:04.021 entries in the routing table, you end

00:30:06.716 up with a graph like the CAIDA

00:30:09.411 graph I showed earlier.

 

00:30:15.931 So, we see that the routing works

00:30:19.298 by each autonomous system advertising some IP

00:30:22.666 address prefixes to its neighbours.

 

00:30:25.171 BGP works by each AS telling its

00:30:29.126 neighbours

 

00:30:29.791 “I can reach these IP prefixes”,

00:30:32.526 “if you send traffic to me,

00:30:35.260 I will deliver it to these prefixes”.

 

00:30:38.551 And each AS chooses which of these

00:30:41.561 prefixes, which of these routes, to advertise

00:30:44.571 to its neighbours.

 

00:30:45.961 But it doesn't need to advertise everything

00:30:49.014 it knows. It doesn't need to advertise

00:30:52.067 out everything it receives.

 

00:30:53.911 Indeed it's common for BGP,

 

00:30:57.961 it's common for autonomous systems in BGP,

00:31:02.006 to drop some routes from their advertisement.

 

00:31:06.151 And, what address ranges, what AS paths

00:31:11.165 they advertise, really depends on the relationship

00:31:16.179 between the different autonomous systems.

 

00:31:19.861 And a common way this is done,

00:31:22.934 is using what’s known as the Gao-Rexford

00:31:26.007 rules. And this is a way of

00:31:29.081 categorising autonomous systems, and categorising how the

00:31:32.154 routing should work.

 

00:31:33.571 And for any autonomous system, any AS

00:31:36.717 in the Internet, it categorises the other

00:31:39.864 autonomous systems as either being

 

00:31:42.211 customers, peers, or providers of that AS.

 

00:31:47.701 So customers are easy. These are the

00:31:51.700 people for whom the network sells Internet

00:31:55.700 service.

 

00:31:56.371 If the network we’re considering is JANET,

00:32:00.769 the Joint Academic NETwork that connects the

00:32:05.167 UK universities together, the customers are the

00:32:09.564 individual universities.

 

00:32:10.921 The peers are the other networks with

00:32:15.038 whom it exchanges traffic,

 

00:32:17.491 on a peer basis, without really challenging.

 

00:32:22.261 The customers are people who pay you

00:32:25.119 for Internet access; the peers are the

00:32:27.978 people you agree to share traffic with

00:32:30.836 at no cost.

 

00:32:32.161 And in the case of JANET,

00:32:34.513 the academic research network in the UK,

00:32:37.256 the peers might be the other academic

00:32:39.999 research networks around Europe, for example.

 

00:32:42.451 And the providers are the people who

00:32:45.023 you pay for Internet access, who this

00:32:47.594 AS pays for Internet access.

 

00:32:49.531 And this might be,

 

00:32:51.691 in the case of JANET, it would

00:32:54.548 be GÉANT, the pan-European

 

00:32:56.281 interconnect, or it might be a commercial

00:32:59.365 interconnect that connects it to the rest

00:33:02.449 of the Internet.

 

00:33:03.871 And, the idea is that if you

00:33:06.126 get a route from one of your

00:33:08.381 customers, so if one of your customers

00:33:10.636 says “I have this IP address range”,

 

00:33:12.991 “I own these IP addresses”, you will

00:33:17.185 advertise that out to everybody.

 

00:33:20.281 One of your customers, one of the

00:33:23.103 people who is paying you for Internet

00:33:25.925 access, advertises that they own a particular

00:33:28.747 IP address range, you tell your other

00:33:31.569 customers, you tell your peers, and you

00:33:34.392 tell your provider.

 

00:33:35.701 And that makes sense. The customer is

00:33:38.523 paying you to provide Internet access,

 

00:33:41.041 paying you to deliver traffic for them,

00:33:43.679 but also paying you to deliver traffic

00:33:46.316 to them. So if they own a

00:33:48.954 particular IP address range, they want to

00:33:51.592 receive traffic destined for those addresses,

00:33:53.853 so you tell the rest of the

00:33:56.491 Internet about it.

 

00:33:57.721 If you get a route from your

00:34:01.096 one of your providers, or from one

00:34:04.471 of your peers, though, you only tell

00:34:07.847 your customers.

 

00:34:08.911 This is a route you're paying to

00:34:12.428 use, rather than being paid to use,

00:34:15.944 and therefore you only tell the people,

 

00:34:19.561 you only tell the customers, who are

00:34:21.711 paying you to use it. And,

00:34:23.554 for a route from a provider,

00:34:25.397 this makes sense; you're explicitly paying for

00:34:27.547 access, so

 

00:34:28.261 you tell your customers. But you don’t

00:34:31.070 tell your peers, because you're paying for

00:34:33.879 this access. Why would you let them

00:34:36.688 use it?

 

00:34:37.591 And, for routes received from your peers,

00:34:40.019 you tell your customers, because the peer

00:34:42.446 is willing to let you use this

00:34:44.874 route at no cost to your customers,

00:34:47.302 but you don't tell your provider,

00:34:49.383 you didn't tell the rest of the

00:34:51.811 Internet about it.

 

00:34:52.951 And the Gao-Rexford specify that roots are

00:34:56.674 advertised, so they specify potential ways traffic

00:35:00.397 can flow.

 

00:35:01.561 This isn't saying “the traffic will go

00:35:04.829 this way”, it's saying there is a

00:35:08.096 potential route that traffic could follow,

00:35:10.897 if it wanted to get to this

00:35:14.164 address.

 

00:35:14.731 And the result is what’s known as

00:35:17.313 a valley-free

 

00:35:18.151 directed acyclic graph, a valley-free DAG.

 

00:35:22.081 And directed and acyclic means that

 

00:35:26.521 there's a direction: it shows you which

00:35:29.115 way to go, to get to a

00:35:31.708 particular range of IP addresses. It’s acyclic,

00:35:34.302 that means there are no loops.

00:35:36.525 And valley-free means it goes up,

00:35:38.748 and then along, and then down.

 

00:35:41.071 It never goes from a customer,

00:35:43.548 to its provider, then down to one

00:35:46.439 of its customers, and then back up

00:35:49.329 to another provider. It goes up,

00:35:51.806 then along, and then down.

 

00:35:53.971 And it's designed, essentially, to optimise for

00:35:58.293 profit.

 

00:35:59.011 If someone is paying you for access,

00:36:01.870 you will advertise their routes, which allows

00:36:04.729 traffic to flow to them.

 

00:36:06.871 If you're paying for a route,

00:36:09.365 you only advertise it to people who

00:36:12.274 are paying you.

 

00:36:13.621 It’s designed to avoid advertising things which

00:36:17.058 you pay for, to people who are

00:36:20.496 not paying you for access.

 

00:36:26.611 All the autonomous systems exchange routing information

00:36:30.636 with their neighbours.

 

00:36:32.461 The exchange lists of IP prefixes,

00:36:35.783 and how they can be reached.

00:36:39.105 What path, what set of autonomous systems,

 

00:36:43.081 you have to go through to get

00:36:46.476 to that prefix.

 

00:36:48.031 And they filter this based on the

00:36:50.549 policies. Maybe they apply the Gao-Rexford rules,

00:36:53.068 maybe they apply some other rules,

00:36:55.227 but they don't necessarily advertise all of

00:36:57.745 the prefixes, and all of the paths,

00:37:00.264 they know to all of their peers,

00:37:02.782 to all of their neighbours.

 

00:37:04.681 Each autonomous system has a partial view

00:37:08.228 of the AS-level topology. It knows what

00:37:11.774 its neighbours are willing to tell it.

 

00:37:15.421 And it takes that view of the

00:37:18.844 topology, and it applies a set of

00:37:22.266 rules that enforce its policy.

 

00:37:24.811 And maybe they filter out certain routes.

 

00:37:28.081 Maybe they don't tell their neighbours about

00:37:31.001 the existence of certain routes, because they

00:37:33.920 don't want them to use those routes

00:37:36.840 for some reasons.

 

00:37:38.191 Maybe it filters out certain routes its

00:37:41.418 neighbours tell it.

 

00:37:42.901 The neighbouring AS is willing to deliver

00:37:45.439 traffic in that direction, but it doesn't

00:37:47.977 want the traffic to flow that way,

00:37:50.515 so it filters out that prefix from

00:37:53.053 its routing table.

 

00:37:54.241 Maybe it prioritises, or de-prioritises, certain other

00:37:57.867 routes. Maybe it tags particular routes for

00:38:01.493 special processing, if there's a particular business

00:38:05.119 reason to do so.

 

00:38:07.291 And it goes through, and it applies

00:38:11.623 its policies.

 

00:38:12.961 The table shows the criteria people use,

00:38:17.565 and there’s a local preference, the length

00:38:22.170 of the AS path,

 

00:38:24.901 the type of origin; is this something

00:38:27.520 you know because it's one of your

00:38:30.139 directly connected customers, or is it something

00:38:32.758 you’ve learnt from one of the other

00:38:35.377 networks?

 

00:38:35.851 There’s a multi-exit discriminator if there are

00:38:38.842 several ways of getting to a single

00:38:41.834 destination.

 

00:38:42.361 And so on. there’s a bunch of

00:38:46.707 policies and so on.

 

00:38:49.291 The point is

 

00:38:51.541 that,

 

00:38:53.911 just because you know the existence of

00:38:56.351 a route, doesn't mean you use it.

 

00:38:58.891 And you don't necessarily

 

00:39:01.291 pick the shortest routes, you pick the

00:39:05.009 shortest route that matches all your policies

00:39:08.727 after filtering the graph.

 

00:39:10.951 And, this means that the route that

00:39:14.051 data takes to get through the network,

 

00:39:17.251 may not necessarily be the shortest route

00:39:20.058 through the network.

 

00:39:21.361 It’s the shortest route that meets all

00:39:25.063 policy constraints.

 

00:39:26.221 It means there may be cases where

 

00:39:29.611 Data can't get to a particular destination,

 

00:39:34.351 even if there is a potential route

00:39:37.236 there, because the autonomous systems don't have

00:39:40.120 a policy which allows it to go

00:39:43.005 in that direction.

 

00:39:44.341 There are cases where the network could

00:39:47.211 deliver data to a particular destination,

00:39:49.671 but won’t, because the policy choices made

00:39:52.541 by some, or more, of the ISPs

00:39:55.411 in some parts of the world,

00:39:57.871 won't allow traffic from those parts of

00:40:00.741 the world to reach that destination.

 

00:40:03.301 it's finding the shortest policy-compliant path.

 

00:40:13.321 BGP is

 

00:40:17.641 a very political protocol.

 

00:40:22.741 How the information is exchanged is straightforward.

00:40:26.434 The autonomous systems exchange lists of prefixes,

00:40:30.127 and the AS path in order to

00:40:33.821 get to those prefixes.

 

00:40:36.031 How those paths are filtered and prioritised

00:40:41.958 is where it gets difficult.

 

00:40:46.291 In many cases the policy, and economic,

00:40:49.541 and political concerns outweigh the shortest path.

 

00:40:52.891 The routes are filtered, and they’re prioritised,

00:40:56.176 and they’re de-prioritised, based on policy choices,

00:40:59.460 based on how much it costs a

00:41:02.745 particular AS, and based on

 

00:41:05.191 political decisions as to which ASes,

00:41:09.491 which regions, which countries, to prefer.

 

00:41:13.891 And the autonomous systems are competitors,

00:41:18.131 they don't really trust each other.

 

00:41:22.471 And, as a result, it's hard to

00:41:26.973 say how BGP really works, because the

00:41:31.476 ASes won't tell anyone outside their own

00:41:35.978 organisation.

 

00:41:36.721 We know what information, we can put

00:41:39.421 a monitor at some point in the

00:41:42.121 network and see what information is reaching

00:41:44.820 that point of network, we can see

00:41:47.520 what other ASes are willing to advertise

00:41:50.220 to a monitor at that point in

00:41:52.920 the network.

 

00:41:53.791 We can get a friendly AS to

00:41:56.471 show us the BGP data they're receiving.

 

00:41:59.251 And there are projects, such as RIPE

00:42:02.147 RIS, or the RouteViews project from the

00:42:05.042 University of Oregon, which archive this data,

00:42:07.938 and store it, and make it available

00:42:10.834 for people.

 

00:42:11.761 And we know the BGP decision process,

00:42:14.705 we know the algorithm the routers follow

00:42:17.649 to exchange the data. We saw that

00:42:20.593 in a previous slide, and it's deterministic

00:42:23.537 about how they pick a particular route.

 

00:42:26.581 But what we don't know is the

00:42:28.871 data which is going into that algorithm.

 

00:42:31.261 We know the set of routes that

00:42:33.555 are being advertised, but they are then

00:42:35.849 filtered, and prioritised, and de-prioritised, and munged,

00:42:38.144 before they go into the decision process

00:42:40.438 in the routers.

 

00:42:41.521 And how each autonomous system does this,

00:42:43.761 is a trade secret of that AS,

00:42:46.001 and they won't tell the rest of

00:42:48.241 the network. And this makes it difficult

00:42:50.481 to evaluate how routing decisions are made

00:42:52.721 in practice.

 

00:42:53.461 We can see the end result.

00:42:55.596 We can put a monitor in the

00:42:58.088 network somewhere and see the routing tables

00:43:00.579 that it gets. And, based on that,

00:43:03.070 we can infer how the data will

00:43:05.562 get to a particular destination.

 

00:43:07.441 But how those tables got filtered,

00:43:09.296 and what other routes exist which are

00:43:11.461 being de-prioritised and filtered out so we

00:43:13.626 can't see them, that we don't know.

00:43:15.790 We don't know the potential connections which

00:43:17.955 we're not allowed to use.

 

00:43:22.951 That's all I wan to say about

00:43:25.813 interdomain routing.

 

00:43:26.731 We’ve got a network of networks.

 

00:43:29.701 At the edges, the routing is easy.

 

00:43:34.801 Within an edge network, you point to

00:43:38.689 the default gateway, and

 

00:43:41.011 between networks at the edges, again,

00:43:43.458 you can use a default route,

00:43:45.904 you just forward towards the core.

 

00:43:48.451 In the core you have the default

00:43:51.088 free zone, everyone knows everything,

 

00:43:53.071 everyone has to know all of the

00:43:55.451 paths.

 

00:43:55.891 And they use BGP to exchange this

00:43:58.056 data, and then they filter it,

00:43:59.913 and munge it, and process it,

00:44:01.769 to suit their policy needs, and it

00:44:03.934 becomes very opaque what happens.

 

00:44:05.581 Eventually, though, the packets get delivered,

00:44:08.415 we hope, and the Internet routing works.

 

00:44:11.821 In the next part, I'll talk about

00:44:14.094 routing security, and after that I'll talk

00:44:16.368 about intradomain routing, how routing works within

00:44:18.641 a network.

Part 3: Routing Security

Some of the security limitations of BGP routing, and the potential for accidental or malicious route hijacking, are discussed. The RPKI and MANRS are discussed as possible approaches to improving BGP routing security.

00:00:00.000 Having discussed interdomain routing in detail in

00:00:02.360 the previous part of the lecture,

00:00:04.382 I’d like to move on and talk

00:00:06.742 briefly about routing security.

 

00:00:08.190 I’ll talk about what is Internet routing

00:00:10.973 security, and the problems of secure routing

00:00:13.755 in the Internet, and I’ll talk about

00:00:16.538 two approaches to addressing some of these

00:00:19.321 problems, the Resource Public Key Infrastructure,

00:00:21.706 RPKI, and the Mutually Agreed Norms for

00:00:24.488 Routing Security, MANRS.

 

00:00:28.591 So the issue with routing in the

00:00:33.137 Internet is being able to advertise prefixes,

00:00:37.683 address ranges, into BGP.

 

00:00:40.381 And, to be sure that only the

00:00:43.911 legitimate owner of that address range,

00:00:46.936 only the legitimate owner of a particular

00:00:50.466 prefix, can do that, such that the

00:00:53.996 traffic goes to the correct destinations.

 

00:00:57.121 And the problem with BGP, and the

00:01:00.466 problem with Internet routing security, is that

00:01:03.812 it doesn't provide this guarantee.

 

00:01:06.301 The problem with BGP is that any

00:01:09.743 autonomous system participating in BGP routing can

00:01:13.184 announce any address prefix. And they can

00:01:16.626 announce any address prefix whether-or-not they own

00:01:20.068 that prefix.

 

00:01:21.151 Once an autonomous system has the ability

00:01:24.607 to participate in BGP, once one of

00:01:28.062 the existing BGP speakers has agreed to

00:01:31.518 peer with it and accept routes from

00:01:34.974 that AS,

 

00:01:36.061 the expectation is that it will announce

00:01:38.412 its own routes, announce the routes to

00:01:40.763 its own address space, and to those

00:01:43.113 of its customers.

 

00:01:44.221 But, if an autonomous system chooses to

00:01:47.523 announce address space owned by someone else,

00:01:50.825 then there’s nothing to stop it from

00:01:54.128 doing that.

 

00:01:55.171 And this can happen accidentally. Or it

00:01:58.601 can happen because of people maliciously trying

00:02:02.031 to redirect traffic, such that traffic to

00:02:05.461 a particular destination goes to a fake

00:02:08.891 site, or follows a

 

00:02:10.951 path through a site which can snoop

00:02:14.808 on particular traffic.

 

00:02:16.561 And the result is that the traffic

00:02:19.830 gets misdirected. It’s what’s known as a

00:02:23.100 BGP hijacking attack.

 

00:02:24.601 And this happens frequently by accident,

00:02:28.007 and these accidental hijackings of prefixes are

00:02:31.980 a serious stability problems for the network.

00:02:35.953 But it can also happen due to

00:02:39.926 malicious activities.

 

00:02:41.161 A well-known example of the type of

00:02:44.720 problem that can happen, is linked from

00:02:48.279 the slide, and this happened when an

00:02:51.839 Internet service provider in Pakistan

 

00:02:54.481 managed to announce the IP address range

00:02:58.290 for YouTube to the Internet.

 

00:03:01.111 And what was happening was that a

00:03:05.760 court in Pakistan ruled that

 

00:03:09.181 ISPs in that country were to block

00:03:13.227 access to YouTube,

 

00:03:15.061 because the content, some of the content,

00:03:18.246 on YouTube was ruled to infringe local

00:03:21.431 laws. And the ISPs in Pakistan were

00:03:24.616 told to block access to this content.

 

00:03:27.901 And the way this ISP tried to

00:03:30.830 do that, was by injecting a route

00:03:33.759 to the IP address ranges owned by,

00:03:36.687 and used by, YouTube,

 

00:03:38.461 to its part of the network.

 

00:03:42.961 And the idea was that all of

00:03:46.018 its customers, within the country, would see

00:03:49.076 this route advertisement, and their traffic would

00:03:52.133 be redirected to a page that says

00:03:55.190 “access to the site is blocked in

00:03:58.247 this country”.

 

00:03:59.221 And, if they’d successfully sent that announcement

00:04:02.290 only into Pakistan, that would have worked

00:04:05.358 just fine. That’s a perfectly reasonable technical

00:04:08.427 method of blocking access to a particular

00:04:11.496 site, is that you inject the route

00:04:14.564 that way.

 

00:04:15.541 The problem is that they misconfigured their

00:04:17.972 routers, and also announced it to the

00:04:20.403 rest of the Internet, as well as

00:04:22.834 to

 

00:04:23.281 their customers within the country.

 

00:04:26.641 And, as a result of that,

00:04:28.837 all of the YouTube traffic in the

00:04:31.400 network was redirected to this site in

00:04:33.962 Pakistan, which stated that the traffic was

00:04:36.525 blocked.

 

00:04:36.991 Now, as you can imagine, this was

00:04:40.053 noticed fairly quickly. The particular ISP that

00:04:43.115 was making the incorrect announcement was located,

00:04:46.177 and the announcement was filtered out

 

00:04:48.901 very near to that ISP, and so

00:04:52.063 the problem didn't last long.

 

00:04:54.421 But it does show that it's possible

00:04:58.115 to accidentally disrupt global routing operations,

 

00:05:01.381 in a really quite surprising, and widespread,

00:05:07.567 way.

 

00:05:08.551 And this type of problem happens,

00:05:11.739 in perhaps less high-profile ways, on a

00:05:15.459 daily basis. And there are also malicious

00:05:19.178 attacks, where

 

00:05:20.341 sites are redirected to a fake version

00:05:22.943 of a site, or traffic is redirected

00:05:25.544 so that it passes through a particular

00:05:28.146 network, where an attacker can snoop on

00:05:30.748 that traffic.

 

00:05:31.591 And this is a serious problem.

00:05:33.544 We'd like to solve this problem,

00:05:35.497 we'd like to make sure that only

00:05:37.775 the legitimate owner of a prefix can

00:05:40.054 advertise routes to that prefix.

 

00:05:44.311 How is this done?

 

00:05:48.241 Well, the

 

00:05:50.041 current best approach to solving this is

00:05:53.669 a technique, known as the Resource Public

00:05:57.296 Key Infrastructure, RPKI.

 

00:05:58.951 And the RPKI is an attempt to

00:06:02.556 secure Internet routing.

 

00:06:04.201 And what it does, is it allows

00:06:08.186 autonomous systems to make signed route origin

00:06:12.172 authorisations.

 

00:06:12.841 And these are messages which get sent

00:06:15.937 in BGP

 

00:06:16.921 which provide a digital signature for a

00:06:21.240 particular prefix announcement.

 

00:06:23.191 So, along with the announcement that

 

00:06:26.191 an autonomous system owns a particular IP

00:06:29.129 address range, and can route traffic to

00:06:32.067 that address range, which goes into BGP

00:06:35.005 as normal, and you get the usual

00:06:37.943 AS paths like we saw in the

00:06:40.882 previous part,

 

00:06:41.821 RPKI allows the autonomous systems to send

00:06:46.518 a digital signature.

 

00:06:48.631 And this also progresses through the BGP

00:06:51.378 system, and follows the same route through

00:06:54.126 BGP, and gets filtered and processed in

00:06:56.873 BGP in the same way that the

00:06:59.621 route of advertisements do.

 

00:07:01.291 But it also includes a digital signature,

00:07:04.558 stating that the ISP owns this particular

00:07:07.824 address range, and signed by the next

00:07:11.091 level up in the hierarchy of the

00:07:14.358 routing system.

 

00:07:15.391 So, at the top-level, the regional Internet

00:07:18.638 registries, RIPE, and ARIN, and so on,

00:07:21.884 which assign IP address ranges to ISPs,

 

00:07:25.231 provide a signed statement that they have

00:07:28.094 delegated a particular address range to a

00:07:30.957 particular autonomous system, a particular ISP.

 

00:07:33.511 And if that ISP delegates a subset

00:07:35.548 of that address range to one of

00:07:37.585 its customers, it can make a signed

00:07:39.621 announcement to do so, and that is,

00:07:41.658 in turn, signed.

 

00:07:42.631 The signatures ripple up all the way

00:07:46.005 to the root.

 

00:07:47.551 So you get this hierarchical delegation,

00:07:51.046 with digitally signed statements announcing the delegation

00:07:55.123 of the prefixes.

 

00:07:56.971 And this allows a router which receives

00:08:00.046 a prefix advertisement, and receives one of

00:08:03.120 these Route Origin Authentication announcements, to validate

00:08:06.195 whether that prefix is authorised.

 

00:08:08.491 And the idea is that valid prefixes

00:08:12.102 will have one of these ROAs,

00:08:15.197 the Route Origin Authorisation digital signatures provided,

00:08:18.808 and the invalid prefixes, the hijacked prefixes,

00:08:22.419 will not.

 

00:08:23.551 And when applying BGP policy, the other

00:08:26.597 networks that comprise the Internet can look,

00:08:29.643 and they can prefer prefixes which are

00:08:32.689 digitally signed than those which are not.

00:08:35.735 And that makes it harder to hijack

00:08:38.781 a prefix.

 

00:08:39.751 And RPKI is starting to get traction.

00:08:42.995 It's a relatively new standard, it's maybe

00:08:46.240 10 years old now, and the measurements

00:08:49.484 in the paper we see linked on

00:08:52.728 the slide here, show that, as of

00:08:55.973 a couple of years ago, about 10-12%

00:08:59.217 of the IPv4 addresses

 

00:09:01.171 are covered by a prefix with a

00:09:04.211 valid signature, and this was growing rapidly.

 

00:09:07.351 And the links to the CloudFlare blog,

00:09:11.038 and to the isbgpsafeyet.com site,

 

00:09:13.771 present more up-to-date statistics, and its continuing

00:09:18.473 to grow, and RPKI is starting to

00:09:23.176 become widely used.

 

00:09:25.291 And it's starting to become possible to

00:09:28.636 validate the authenticity of the routing announcements.

 

00:09:35.941 The other approach to routing security is

00:09:39.418 a system known as MANRS.

 

00:09:42.001 And MANRS is a set of mutually

00:09:45.425 agreed norms for routing security.

 

00:09:47.971 it's a project which is sponsored by

00:09:51.303 the Internet society,

 

00:09:52.831 and is a collaboration between a set

00:09:56.336 of network operators to improve routing security.

 

00:09:59.941 And it's mostly there to share best

00:10:03.135 practices.

 

00:10:03.691 It shares information in how to effectively

00:10:07.896 use RPKI; it shares configuration options;

00:10:11.501 it shares tips and approaches for correctly

00:10:15.706 configuring routers, for correctly configuring filtering,

 

00:10:19.411 for providing anti-spoofing measures; and for coordinating

00:10:24.830 responses to accidental or malicious

 

00:10:28.801 route hijacking when it's discovered.

 

00:10:35.491 And it's mostly there's as a talking

00:10:38.083 shopping, as a forum for the ISPs

00:10:40.674 to coordinate, to make sure that the

00:10:43.266 routing system is stable, to address problems

00:10:45.858 as they occur, and to share and

00:10:48.450 to develop best practices for security.

 

00:10:55.321 And that's essentially all I want to

00:10:57.701 say about routing security.

 

00:10:59.161 Historically, the Internet routing has not been

00:11:02.745 secure at all.

 

00:11:04.381 As RPKI, and as MANRS, start to

00:11:07.365 get rolled-out, we’re starting to see some

00:11:10.349 improvements here, we're starting to see people

00:11:13.332 taking this problem seriously, and trying to

00:11:16.316 bring in some security.

 

00:11:18.121 We're not there yet. The routing is

00:11:20.921 still not particularly secure. Route hijacking,

00:11:23.321 BGP hijacking, still happens on a daily

00:11:26.121 basis, but things are getting better.

Part 4: Intra-domain Routing

Moving on from the discussion of BGP and inter-domain routing, the final part of the lecture briefly reviews intra-domain routing and how it differs. The concepts of distance vector and link state routing are discussion, and the differences in scalability and convergence times are noted. The lecture concludes with a discussion of challenges in recovering from link failures in routing, including fast failover and equal cost multipath routing.

00:00:00.000 The previous parts of the lecture have

00:00:02.715 spoken about interdomain routing, routing between the

00:00:05.430 networks that form the Internet.

 

00:00:07.469 In this final part, I want to

00:00:10.517 talk very briefly about intradomain routing,

00:00:13.129 routing within a network, and just very

00:00:16.176 briefly recap the distance vector and link

00:00:19.224 state routing algorithms.

 

00:00:21.630 So, as we saw in the previous

00:00:24.454 parts of the lecture, BGP and interdomain

00:00:27.278 routing are about giving information on the

00:00:30.103 path to reach other networks.

 

00:00:32.220 They're on the way the set of

00:00:36.557 networks that comprise the Internet work together

00:00:40.894 to exchange information needed to route packets

00:00:45.231 across the network.

 

00:00:47.190 And BGP is very much a policy-focused

00:00:51.578 routing protocol. The challenges in interdomain routing

00:00:55.965 are primarily to do with enforcing routing

00:01:00.353 policy.

 

00:01:01.080 They’re primarily to do with getting the

00:01:05.292 networks which comprise the Internet,

 

00:01:08.400 which are, fundamentally, competitors, to work together

00:01:12.311 enough that they can deliver data across

00:01:16.222 the network. It's about expressing the business

00:01:20.132 constraints, the economic constraints, the political constraints,

00:01:24.043 the policy constraints, that affect the way

00:01:27.954 data is delivered.

 

00:01:29.730 The question of intradomain routing, routing within

00:01:33.609 a network, is quite different.

 

00:01:36.480 If you look at routing, how to

00:01:39.534 route traffic within an autonomous system,

00:01:42.151 within a network,

 

00:01:43.560 you find that

 

00:01:46.110 it's very much a single trust domain.

 

00:01:49.350 The entire network is operated by a

00:01:51.679 single operator, and that's the point of

00:01:54.009 intradomain routing, it's within a domain,

00:01:56.005 it’s within an autonomous system, it's within

00:01:58.334 a network.

 

00:01:59.100 So there's a single trust domain,

00:02:01.341 and there's no real policy restrictions on

00:02:03.956 who can see the information about the

00:02:06.571 network, or on which links can be

00:02:09.186 used.

 

00:02:09.660 When we're talking about BGP, and interdomain

00:02:15.426 routing,

 

00:02:16.350 the different networks, the different parts of

00:02:18.990 the system, want to hide their internal

00:02:21.629 details. They want to hide the information

00:02:24.269 about what's going on inside their network,

00:02:26.909 from their competitors.

 

00:02:28.140 If we're considering intradomain routing, we’re routing

00:02:30.590 within a network owned and operated by

00:02:33.040 a single organisation, and the rest of

00:02:35.490 the organisation can see what's going on.

 

00:02:38.040 They can see the topology of the

00:02:40.391 network, they can understand the constraints it’s

00:02:42.742 operating under, because all of the parts

00:02:45.093 of the organisation working together for one

00:02:47.444 goal.

 

00:02:47.880 So there tend not to be policy

00:02:50.695 restrictions on who can see the topology,

00:02:53.509 or which devices can understand the constraints

00:02:56.324 on the network.

 

00:02:57.630 And there tend not to be policy

00:03:00.496 restrictions on which links can be used.

00:03:03.362 Certainly backup links, and so on,

00:03:05.819 exist, but there's no need to hide

00:03:08.685 those links; they’re visible to the entire

00:03:11.551 system.

 

00:03:12.060 And, generally, the goal is to get

00:03:14.808 very efficient routing. We’re trying to find

00:03:17.555 the shortest path through the network.

 

00:03:20.010 Unlike inter domain routing, where the goal

00:03:22.878 is to find the shortest policy-compliant path,

00:03:25.745 the goal here is just to find

00:03:28.613 the most efficient use of the resources

00:03:31.481 you have.

 

00:03:32.400 There’s two fundamental approaches that people use

00:03:36.551 for intradomain routing.

 

00:03:38.430 There’s an approach known as distance vector,

00:03:41.126 which tends to get instantiated in the

00:03:43.822 Routing Information Protocol, RIP, or there’s an

00:03:46.517 approach known as link state routing,

00:03:48.828 which has been instantiated in a protocol

00:03:51.524 called the Open Shortest Path First routing

00:03:54.220 protocol, OSPF.

 

00:03:59.760 So, first off, I’ll just briefly talk

00:04:02.312 about distance vector routing.

 

00:04:03.870 The idea here is that the nodes

00:04:07.351 in the network, the routers that comprise

00:04:10.832 the network, maintain a routing table which

00:04:14.313 contains

 

00:04:14.910 the distance they are from every other

00:04:17.945 node, and the next hop to get

00:04:20.979 towards that node.

 

00:04:22.380 And we have an example on the

00:04:25.248 slide here, that shows a network with

00:04:28.115 seven nodes. And in this example,

00:04:30.573 they’re labeled with the letters A,

00:04:33.031 B, C, D, etc.

 

00:04:34.770 And, in a real system, these would

00:04:37.959 have IP addresses to identify them,

00:04:40.692 but that just makes the slide complicated.

 

00:04:43.980 And we see the an example of

00:04:47.165 the routing table as is shown at

00:04:50.350 node A

 

00:04:51.360 And we see that node A contains

00:04:53.716 a list of all of the other

00:04:56.072 nodes of the network, destinations B,

00:04:58.091 C, D, E, F, and G.

 

00:05:00.210 And, for each of those, it maintains

00:05:02.444 the distance, how far away it is

00:05:04.678 from that node, in number of hops.

00:05:06.911 So it's one hop away from node

00:05:09.145 B, it’s directly connected to B,

 

00:05:11.160 and it can reach it via node

00:05:13.634 B, it's directly connected. Similarly, it's one

00:05:16.108 hop away from C. It's two hops

00:05:18.582 away from D, and it knows the

00:05:21.056 next hop to get there is C,

00:05:23.530 and so on.

 

00:05:24.690 And each node in the network periodically

00:05:27.402 exchanges a message with its neighbours,

00:05:29.727 where it tells its neighbours, “these are

00:05:32.439 who I think my other neighbours are,

00:05:35.151 and this is how far away I

00:05:37.863 think I am from them,

 

00:05:39.900 and this is how far where I

00:05:41.908 am from the from the rest of

00:05:43.917 the network as well”. And this information

00:05:45.925 gradually spreads through the network.

 

00:05:47.460 And, in the first round of this

00:05:50.643 exchange, each node just finds out its

00:05:53.825 neighbours, then it finds out its neighbours’

00:05:57.008 neighbours, and then its neighbours’ neighbours’,

00:05:59.736 neighbours, and so.

 

00:06:01.200 And the protocol operates in rounds.

00:06:03.615 It continually exchanges this information with the

00:06:06.432 neighbours, and gradually fills in the map

00:06:09.249 of the network so it knows how

00:06:12.066 far away it is from every node

00:06:14.883 in the network, and what's the best

00:06:17.700 way of getting there.

 

00:06:19.410 And once it's done that, it just

00:06:21.816 forwards the packets on the shortest path

00:06:24.222 to the destination, based on the hop

00:06:26.628 count, based on the distance. And if

00:06:29.034 there's two ways of getting there with

00:06:31.440 the same hop count it can pick

00:06:33.846 arbitrarily.

 

00:06:34.290 Now, distance vector routing is

 

00:06:37.290 relatively straightforward, and it doesn't maintain too

00:06:40.209 much information at the nodes. All it

00:06:43.128 stores is a list of the other

00:06:46.047 nodes, and the distance, and next hop,

00:06:48.965 so the amount of state it needs

00:06:51.884 is linear with the size of the

00:06:54.803 network.

 

00:06:55.320 The amount of entries in the routing

00:06:58.102 table grows linearly with the number of

00:07:00.883 nodes in the network. so it's relatively

00:07:03.665 resource efficient.

 

00:07:04.560 But it's slow to converge, because of

00:07:07.375 the way it operates in rounds,

00:07:09.788 and

 

00:07:10.290 it has a problem where certain types

00:07:14.293 of failures can lead

 

00:07:16.680 to a behaviour where the distance gradually

00:07:19.989 counts up by one each iteration of

00:07:23.298 the algorithm, each iteration of the routing

00:07:26.607 protocol.

 

00:07:27.180 And when a failure has happened,

00:07:29.305 it gradually counts up by one until

00:07:31.785 it gets to the representation of infinity

00:07:34.265 in the system, and takes multiple rounds

00:07:36.745 to converge and detect the failure.

 

00:07:38.970 And that behaviour can lead to very

00:07:41.805 slow convergence, and the system not being

00:07:44.640 able to recover from a link failure

00:07:47.475 effectively.

 

00:07:52.380 The alternative algorithm, which is widely used

00:07:55.686 in the network, is what's known as

00:07:58.993 link state routing.

 

00:08:00.510 And the idea of link state routing

 

00:08:03.540 is that the nodes in the network

00:08:06.486 know, obviously, the links to their neighbours.

00:08:09.432 They know which other routers they directly

00:08:12.378 connected to.

 

00:08:13.320 And they know some metric about the

00:08:16.412 cost of using those links.

 

00:08:18.720 And that may just be the link

00:08:21.755 bandwidth, as a metric, or it may

00:08:24.790 be the delay, or it may be

00:08:27.825 a hard-coded metric chosen by the operator.

 

00:08:30.960 And when a node starts up,

00:08:33.845 or when a link changes, when something

00:08:37.210 changes in the network, the nodes can

00:08:40.575 flood this information throughout the network.

 

00:08:43.560 They can send to all of their

00:08:46.519 neighbours the list of directly connected nodes,

00:08:49.479 and the cost for using that link,

00:08:52.438 along with a sequence number for these

00:08:55.397 messages.

 

00:08:55.920 And this gets flooded throughout the whole

00:08:59.013 network, so every node in the network

00:09:02.106 learns every other node in the network,

00:09:05.199 and what are each node’s neighbours.

 

00:09:07.950 So node A, in this example,

00:09:10.017 will flood out through the network that

00:09:12.427 it's node A, its neighbours are B,

00:09:14.838 C, E, and F, and it will

00:09:17.249 flood out the metrics, the speed of

00:09:19.660 the links for example. And this will

00:09:22.071 go everywhere.

 

00:09:22.860 This will get flooded throughout this entire

00:09:25.289 network, so node B will know what

00:09:27.719 is node A and what are its

00:09:30.148 neighbours, and so it will node C,

00:09:32.577 and D, and E, and F,

00:09:34.659 and G, and each-and-every one of those

00:09:37.089 nodes knows that node A exists,

00:09:39.171 and which nodes it's directly connected to.

 

00:09:41.700 And this happens for every node.

00:09:44.700 Each node periodically floods this information out,

00:09:48.200 whenever anything changes.

 

00:09:49.800 And, over time, this means that the

00:09:51.936 entire network, all of the nodes in

00:09:54.072 the network, all the routers in the

00:09:56.208 network, get to learn all of the

00:09:58.344 other links in the network.

 

00:09:59.970 They get to know which nodes are

00:10:03.182 directly connected.

 

00:10:04.200 That point they can just draw a

00:10:07.258 complete map of the network. Every node

00:10:10.316 knows the complete network topology,

 

00:10:12.600 and at that point, it can run

00:10:15.468 Dijkstra’s algorithm, calculate the shortest path to

00:10:18.336 every other node in the network,

00:10:20.794 and use that to make the decisions

00:10:23.662 which way it forwards the packets.

 

00:10:26.220 Now, this works much better,

 

00:10:30.150 because every node knows the complete topology.

00:10:32.956 If something fails, they can recover quite

00:10:35.761 quickly, as soon as the message gets

00:10:38.567 to them, they don't have to wait

00:10:41.372 for the count-to-infinity cycle that the distance

00:10:44.178 vector routing has.

 

00:10:45.480 The disadvantage of it, though, is that

00:10:48.218 it needs more memory, and it needs

00:10:50.956 more compute cycles.

 

00:10:52.230 Not only does each node store the

00:10:54.537 distance to every other node, but it

00:10:56.843 stores a complete map of the network.

 

00:10:59.250 So the amount of state each router,

00:11:01.671 each node in the network, needs to

00:11:04.092 store is equal to the size of

00:11:06.513 the network squared.

 

00:11:07.650 So it scales order n squared with

00:11:10.412 the size of the network, because each

00:11:13.173 node is storing the complete matrix of

00:11:15.935 all the nodes and their connections to

00:11:18.696 every other node.

 

00:11:19.980 And calculating Dijkstra’s algorithm is more computationally

00:11:23.151 complex than just looking at the distances.

00:11:26.323 And so this algorithm, the link state

00:11:29.494 approach to routing, is more memory hungry,

00:11:32.666 and it's more computationally intensive, than distance

00:11:35.837 vector.

 

00:11:36.390 But it converges much faster.

 

00:11:40.110 It recovers much faster after errors,

00:11:42.170 after links fail.

 

00:11:47.940 So we see there’s two approaches.

 

00:11:50.280 You can use distance vector routing in

00:11:52.787 a network, which is very simple to

00:11:55.293 implement, has low resource overheads in routers,

 

00:11:57.900 but suffers from very slow convergence.

00:12:00.302 If a link in the network fails,

00:12:03.104 it takes a long time to recover,

00:12:05.905 and packets cannot be delivered, packets to

00:12:08.707 certain destinations will not be correctly delivered

00:12:11.509 during that time.

 

00:12:12.810 Or you can use the link state

00:12:15.524 approach to routing, which is more complex,

00:12:18.237 requires the routers to have more memory,

00:12:20.951 do more computations, but it's much faster

00:12:23.665 to converge.

 

00:12:24.540 And, when the network was starting out,

00:12:27.841 distance vector routing was relatively popular because

00:12:31.141 memory was expensive, because machines was slow,

00:12:34.442 and because there were not particularly strict

00:12:37.742 performance bounds on the network.

 

00:12:40.200 These days, memory is cheap, machines are

00:12:43.299 fast, and so the link state approach

00:12:46.399 is generally preferred, because it converges faster,

00:12:49.498 because the network recovers from failures much

00:12:52.597 faster.

 

00:12:58.350 So what are the challenges with intradomain

00:13:02.935 routing?

 

00:13:03.690 Well, I think there’s two.

 

00:13:07.470 The main one is how does it

00:13:14.623 recover effectively from failures?

 

00:13:18.810 While network equipment is pretty robust,

00:13:24.143 and pretty reliable,

 

00:13:26.910 it turns out that construction workers are

00:13:29.830 actually surprisingly good at breaking network cables.

 

00:13:32.850 And it's surprisingly common that someone digging

00:13:36.028 up the road puts a JCB through

00:13:39.206 the cables and breaks the network.

 

00:13:42.030 And, similarly, for people operating long distance

00:13:45.471 networks, people operating the international links,

00:13:48.421 it turns out that trawlers are pretty

00:13:51.862 good at damaging undersea cables.

 

00:13:54.420 And so good network designs need to

00:13:56.923 have multiple paths from source to destination.

00:13:59.426 And they need to be able to

00:14:01.929 fail-over to a different path if a

00:14:04.432 link breaks, and they need to be

00:14:06.935 able to do that relatively quickly.

 

00:14:09.180 How quickly do they need to notice

00:14:11.633 this? How quickly do they need to

00:14:14.087 switch over to a backup path?

 

00:14:16.290 Well,

 

00:14:18.420 It depends, what sort of guarantees you've

00:14:22.970 given your customers.

 

00:14:25.020 For certain types of networks, it may

00:14:27.657 be that a few minutes downtime is

00:14:30.293 acceptable. Maybe the customers of that operator

00:14:32.930 are okay if the link goes away

00:14:35.567 for half-an-hour.

 

00:14:36.420 That seems less likely, though.

 

00:14:39.990 A few seconds failure? That's getting more

00:14:45.100 acceptable.

 

00:14:45.930 it's noticeable, probably, but it's probably acceptable

00:14:48.562 if the link goes down for 10

00:14:51.194 seconds, for a lot of users.

 

00:14:53.550 But if the links are being used

00:14:56.808 to carry real-time traffic,

 

00:14:58.770 and if you want to have the

00:15:01.339 links, have the failures, recovered in a

00:15:03.908 way that doesn't disrupt that traffic,

 

00:15:06.210 maybe you're providing the network link for

00:15:09.812 the BBC, maybe you're providing a network

00:15:13.414 link for a service which is carrying

00:15:17.016 production quality video,

 

00:15:18.660 critical video, for example,

 

00:15:21.690 and if you want to recover such

00:15:24.048 that it doesn't affect that sort of

00:15:26.407 media, you need to be able to

00:15:28.765 recover within the duration of a single

00:15:31.123 frame.

 

00:15:31.560 So you need to be able to

00:15:33.807 switch-over to a backup link within maybe

00:15:36.055 a 60th of a second. And have

00:15:38.302 that link, have that backup link,

00:15:40.228 have similar latency to the original so

00:15:42.476 it doesn't cause a

 

00:15:43.860 significant gap in the packets being received.

 

00:15:49.230 And so, a lot of the challenge

00:15:51.423 is how quickly can you fail-over,

00:15:53.302 and how quickly do you need to

00:15:55.495 fail-over in the event of a link

00:15:57.687 failure, for your customers?

 

00:15:59.040 If you’re a network operator, what demands

00:16:02.133 are your customers placing on how quickly

00:16:05.226 it recovers?

 

00:16:06.210 And different service level guarantees,

 

00:16:10.080 different service level agreements, obviously affect how

00:16:12.334 much you charge your customers. But also

00:16:14.588 they affect how you organise, and how

00:16:16.842 you design, the network, and what mechanisms

00:16:19.096 you put in place for detecting failures.

 

00:16:21.450 And how you tune the protocol to

00:16:24.550 handle failures, and to recover from failures.

 

00:16:27.750 And quite often, this involves techniques

 

00:16:30.480 to pre-calculate alternative paths, so the system

00:16:34.829 has

 

00:16:35.550 several different routing tables pre-configured,

 

00:16:40.350 accounting for different link failures, and can

00:16:43.411 just detect the failure and switch over

00:16:46.471 instantly to a pre-computed alternative, and doesn't

00:16:49.532 have to wait for the Information to

00:16:52.593 propagate.

 

00:16:53.130 And the other issue is that of

00:16:56.140 load balancing. If you have multiple paths

00:16:59.150 through your network,

 

00:17:00.540 and you're trying to spread the amount

00:17:02.402 of traffic you have to make effective

00:17:04.264 use of those paths, of those different

00:17:06.126 paths through the network,

 

00:17:07.290 such that not all of the traffic

00:17:10.817 is concentrated on a single link,

00:17:13.840 but it's being spread across the network

00:17:17.367 to avoid congesting a particular link.

 

00:17:20.490 Then, quite often, the idea is what's

00:17:23.511 called equal-cost multipath. You arrange the network

00:17:26.531 so there's multiple parallel paths on

 

00:17:29.220 the hot links, on the links that

00:17:31.687 see most of the traffic, and you

00:17:34.154 arrange it so that it alternates the

00:17:36.620 traffic between those paths.

 

00:17:38.130 But you need to be at least

00:17:40.922 somewhat careful,

 

00:17:41.820 because protocols like TCP, with the triple-duplicate

00:17:46.642 ACK, are

 

00:17:48.120 at least slightly sensitive to reordering.

 

00:17:51.330 If you're sending packets down alternative routes

00:17:54.185 to a destination, and those routes have

00:17:57.040 different delays, and different amounts of traffic

00:17:59.895 on them, the packets can arrive out-of-order.

 

00:18:02.850 And this is a common source of

00:18:05.388 reordering in the network. And, as we

00:18:07.926 saw when we spoke about TCP,

00:18:10.102 and TCP recovery, it’s insensitive to a

00:18:12.640 small amount of reordering,

 

00:18:14.190 but if the paths, the different routes

00:18:17.121 through the network, have significantly different latency,

00:18:20.052 by spreading the load, by alternating packets

00:18:22.983 between different paths, you can introduce large

00:18:25.914 amounts of reordering.

 

00:18:27.270 Which TCP would then interpret as a

00:18:30.980 packet loss, and start retransmitting packets.

 

00:18:34.260 And different applications, different protocols, have different

00:18:36.805 degrees of sensitivity to reordering. A lot

00:18:39.350 of the real-time applications don't care at

00:18:41.895 all, as long as the packets arrive

00:18:44.439 before their deadline.

 

00:18:45.630 But protocols like TCP and QUIC,

00:18:47.554 to at least some extent, do care

00:18:49.798 so you need to

 

00:18:51.180 arrange the network, so that if you

00:18:53.450 are balancing traffic between multiple routes it

00:18:55.720 doesn't accidentally cause large amounts of reordering.

 

00:19:03.780 And that's all I want to say

00:19:06.619 about routing.

 

00:19:07.530 We spoke a bit about content distribution

00:19:10.925 networks, the idea of locating servers in

00:19:14.320 multiple places in the network in order

00:19:17.715 to

 

00:19:18.300 host content near to the people who

00:19:21.438 want that content, near to the users

00:19:24.577 of that content, and how that can

00:19:27.715 be achieved using

 

00:19:29.160 DNS-based tricks to redirect to a local

00:19:31.798 replica, and a little bit about the

00:19:34.437 idea of anycast routing, where the same

00:19:37.075 addresses are inserted from multiple places and

00:19:39.713 the routing system takes care of getting

00:19:42.352 data to the to the nearest replica.

 

00:19:45.090 I spoke through interdomain routing, we spoke

00:19:47.678 through the idea of the Border gateway

00:19:50.266 Protocol, BGP, and how it can deliver

00:19:52.854 data, and the various policy constraints that

00:19:55.442 affect the way BGP works.

 

00:19:57.390 We spoke about routing security, of the

00:20:01.003 lack thereof, in the Internet, and we

00:20:04.615 finished up by talking a little about

00:20:08.228 intradomain routing.

 

00:20:09.360 This is the final technical part of

00:20:12.432 the lecture,

 

00:20:13.410 the final technical lecture in the course.

00:20:15.811 In the next lecture I’ll move on

00:20:18.211 and conclude the course, and talk about

00:20:20.612 some possible future directions, and some ways

00:20:23.012 in which the network is evolving.

Discussion

Lecture 9 discussed content distribution and routing.

Part 1 considered content distribution networks (CDNs). It spoke about the need to locate proxy caches throughout the network in order to get low-latency access to content and to distribute load. And it discussed, briefly, how to implement CDNs using either DNS tricks or anycast routing.

Part 2 considered inter-domain routing. It spoke about autonomous systems (ASes) and the AS graph. It considered routing at the edge of the network, based on default routes; and in the core, the so-called default-free zone. And it highlighted the role of policy in inter-domain routing.

Inter-domain routing and routing policy is implemented using the Border Gateway Protocol. BGP exchanges prefixes and AS path information, to form a routing table. And the filtered table allows policy to expressed. The Gao-Rexford rules were outlined, describing a common set of polices.

The lack of security in inter-domain routing was mentioned, and the lecture outlined two project, RPKI and MANRS, that are trying to improve security and robustness of the routing infrastructure.

Finally, the lecture discussed intra-domain routing, including distance vector and link state protocols, and some of the challenges in network operations.

Discussion will focus on the need for, and benefits of CDNs; on inter-domain routing and the requirements for policy support and how this is expressed in BGP; and on intra-domain routing and the challenges of network operations.