What is the border gateway protocol (BGP)?

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
what is the border gateway protocol remember that the internet actually consists not of a network of computers but of a network of computer networks or autonomous systems the border gateway protocol is the fundamental protocol that these systems use to figure out how to take a packet and transmit it farther on in the internet so the board the border gateway protocol is fundamental to the idea of how routing works and let me demonstrate how it works using this simple example so i have four computer networks or autonomous systems here remember that all the internal routing inside each of these networks has to be done by the autonomous system itself so to use ub as an example once a packet that's destined for a computer arrives at the university of buffalo the core internet has done its work it it it's finished it says okay i've given this to the the router that is assigned to serve at the university of buffalo and it's now your job it's sort of the job of the people who administer our autonomous system to make sure that that packet gets to its destination um so let's imagine that these four autonomous systems have um peering relationships with each other like this so a is pureed with c and b that means that a the autonomous system a has connections to this autonomous system c and to its autonomous system b and so a can directly send packets that are destined for this system to see and to be same thing with these other autonomous systems and so to some degree this starts to look a little bit like a typical routing diagram where i've replaced nodes with autonomous systems to better reflect how the internet routing protocols actually work so the border gateway protocol or bgp is what the routers in these networks it's how they exchange information about how what they should do with the packet that arrives at their network because for example b in order to reach c if if someone inside b's network wants to transmit a packet to someone inside c's network b has to either send the packet to this autonomous system a first or it has to transmit the packet to autonomous system d and the border gateway protocol has two functions first of all it allows the autonomous systems on the internet to figure out who they can communicate with so it has to do with reachability what what hosts on the internet can i send packets to and it also helps that uh pro that uh this particular router let's say we're starting an internal system b it helps it make this fundamental choice that that router has to make over and over and over again which is should i send the packet to d or should i send the packet to a so let's walk through an example so the way the broader border gateway protocol works is that the routers inside these autonomous systems periodically exchange information with each other that records or represents the different autonomous systems that they have direct connections to so for example the border gateway protocol might operate as follows the router inside a would send a message both to the router and b and to the router in c and what that message would say is it would say i know how to talk to b and i have a one hop linked to b so i'm directly connected to b and i also know how to talk to c and that's at this point when the protocol is bootstrapping itself that's what it sends now once b reaches receives this message the first thing it says is well you know what i'm directly connected to a and so that's not interesting to me i know how to get packets to myself i don't need to send a packet that's destined for my own network to a so but it does say oh this is interesting i'm not directly connected to c but now i know how to get a packet to c so if i want to send a packet to c it maintains a table that says i know how to get packets to be that's myself i have a zero hop link so internally i'm going to route things i also know how to get the packets to a i knew that before because i'm directly connected a and i knew how to get packets to d again i'm directly connected to d but because i received this message from a i found out a new piece of information which is that now i know that there's this network c and i know how to get a packet to c in order to get a packet to c what i'm going to do is i'm going to send it to a and because a told me it has a direct connection to c the length of the trip from my network to c i'm going to record is 2 because it requires sending it to a and then to c now i have again so this is what the routing table that's used at b is going to look like after it receives this message using the border gateway protocol from a so it knows anything destined for my own network i handle internally anything destined for networks a or d i can send directly to those networks and if i need to send something to network c i can transmit it through network a now all what the way the border gaming protocol works is that these routers are periodically sending this information and so what b would do is once it receives this information it would send a message to d with this all of this information d is going to receive this information and once d receives the information what d's routing table is going to look like is it's going to say i know how to route things to myself i knew how to route things to b and to c before but now what i'm going to discover is somebody knows how to get a packet to a and that network is b right so if i want to send a packet to a i transmit it to b and that's a two hop link because b is going to then transmit it onto a once all these routers have exchanged information one interesting thing to notice is that b obviously has two routes to get packets to see one is to send it through a the second one is to send it through d and choosing between those b could choose to send packets in both directions depending on load b could also might have some other way of breaking ties between these networks and might say well i prefer to send things to network d because my connection's a bit faster or something like that so i'm going to do it this way um so this is how the border gateway protocol a very simple example of how the border gateway protocol uses these advertisements about reachability to determine to allow each host on the internet to build up a routing table that essentially allows it to route to any autonomous system that's connected to the internet so in order to route data the routers at ub actually have to know which direction to send packets that are potentially destined for every autonomous system that makes up the internet
Info
Channel: internet-class
Views: 268,759
Rating: undefined out of 5
Keywords: internet, internet-class.org
Id: _aLmzq-23pE
Channel Id: undefined
Length: 7min 9sec (429 seconds)
Published: Thu Sep 08 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.