ArticleslgStudy

science

Border Gateway Protocol

Border Gateway Protocol is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Border Gateway Protocol rather than just read about it. In short: Border Gateway Protocol (BGP) is a standardized exterior gateway protocol designed to exchange routing and reachability information among autonomous systems (AS) on the Internet. BGP is classified as a path-vector routing protocol, and it makes routing decisions based on paths, network policies, or rule-sets configured by a network administrator.

Border Gateway Protocol — main illustration
Border Gateway Protocol — illustration

Key takeaways

  • Border Gateway Protocol belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Border Gateway Protocol to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Border Gateway Protocol from memory before moving on to harder problems.

Reference excerpt

Border Gateway Protocol (BGP) is a standardized exterior gateway protocol designed to exchange routing and reachability information among autonomous systems (AS) on the Internet. BGP is classified as a path-vector routing protocol, and it makes routing decisions based on paths, network policies, or rule-sets configured by a network administrator. BGP used for routing within an autonomous system is called Interior Border Gateway Protocol (iBGP). In contrast, the Internet application of the protocol is called Exterior Border Gateway Protocol (EBGP).

History In January 1989, at the 12th IETF meeting in Austin, Texas, Yakov Rekhter, Len Bosack, and Kirk Lougheed sat down at a table to design what ultimately became the Border Gateway Protocol (BGP). The initial BGP design was recorded on two napkins, hence often referenced to as the “Two-Napkin Protocol”. The design on the napkins was expanded to three hand-written sheets of paper from which the first interoperable BGP implementation was quickly developed. A photocopy of these three sheets of paper now hangs on the wall of a routing protocol development area at Cisco Systems in Milpitas, California. In the same year, RFC 1105 was published, and the BGP protocol (in various forms) has been in use on the Internet since 1994. Half a year after the initial publication, the protocol definition was changed in 1990 with the publication of RFC 1136. In October 1991, BGP version 3 was defined in RFC 1267, obsoleting the two earlier versions. In 1994, the current version (BGP4), was published as RFC 1654. Its definition was replaced in March 1995 by RFC 1771. In January 2006, RFC 4271 was published, which currently is the latest definition of BGP4 (although updated by many other RFCs). RFC 4271 corrected errors, clarified ambiguities and updated the specification with common industry practices. The major enhancement of BGP4 was the support for Classless Inter-Domain Routing (CIDR) and use of route aggregation to decrease the size of routing tables. In its native form, the BGP4 protocol can only work with IPv4 addresses. Since the publication of RFC 2283 in 1998, routing information about a wide range of "address families" (IPv4, IPv6, IPX, etc.) can be carried. The 'Multiprotocol Extensions' have been updated in 2000 with RFC 2858 and finally in 2007 with RFC 4760. With these extensions, the protocol is also referred to as Multiprotocol BGP (MP-BGP).

Operation BGP neighbors, called peers, are established by manual configuration among routers to create a TCP session on port 179. A BGP speaker sends 19-byte keep-alive messages every 30 seconds (protocol default value, tunable) to maintain the connection. Among routing protocols, BGP is unique in using TCP as its transport protocol. When BGP runs between two peers in the same autonomous system (AS), it is referred to as Internal BGP (iBGP or Interior Border Gateway Protocol). When it runs between different autonomous systems, it is called External BGP (eBGP or Exterior Border Gateway Protocol). Routers on the boundary of one AS exchanging information with another AS are called border or edge routers or simply eBGP peers and are typically connected directly, while iBGP peers can be interconnected through other intermediate routers. Other deployment topologies are also possible, such as running eBGP peering inside a VPN tunnel, allowing two remote sites to exchange routing information in a secure and isolated manner. The main difference between iBGP and eBGP peering is in the way routes that were received from one peer are typically propagated by default to other peers:

New routes learned from an eBGP peer are re-advertised to all iBGP and eBGP peers. New routes learned from an iBGP peer are re-advertised to all eBGP peers only. These route-propagation rules effectively require that all iBGP peers inside an AS are interconnected in a full mesh with iBGP sessions. How routes are propagated can be controlled in detail via the route-maps mechanism. This mechanism consists of a set of rules. Each rule describes, for routes matching some given criteria, what action should be taken. The action could be to drop the route, or it could be to modify some attributes of the route before inserting it in the routing table.

Extensions negotiation During the peering handshake, when OPEN messages are exchanged, BGP speakers can negotiate optional capabilities of the session, including multiprotocol extensions and various recovery modes. If the multiprotocol extensions to BGP are negotiated at the time of creation, the BGP speaker can prefix the Network Layer Reachability Information (NLRI) it advertises with an address family prefix. These families include the IPv4 (default), IPv6, IPv4/IPv6 Virtual Private Networks and multicast BGP. Increasingly, BGP is used as a generalized signaling protocol to carry information about routes that may not be part of the global Internet, such as VPNs. In order to make decisions in its operations with peers, a BGP peer uses a simple finite-state machine (FSM) that consists of six states: Idle; Connect; Active; OpenSent; OpenConfirm; and Established. For each peer-to-peer session, a BGP implementation maintains a state variable that tracks which of these six states the session is in. BGP defines the messages that each peer should exchange in order to change the session from one state to another. The first state is the Idle state. In the Idle state, BGP initializes all resources, refuses all inbound BGP connection attempts and initiates a TCP connection to the peer. The second state is Connect. In the Connect state, the router waits for the TCP connection to complete and transitions to the OpenSent state if successful. If unsuccessful, it starts the ConnectRetry timer and transitions to the Active state upon expiration. In the Active state, the router resets the ConnectRetry timer to zero and returns to the Connect state. In the OpenSent state, the router sends an Open message and waits for one in return in order to transition to the OpenConfirm state. Keepalive messages are exchanged and, upon successful receipt, the router is placed into the Established state. In the Established state, the router can send and receive Keepalive, Update, and Notification messages to and from its peer.

… excerpt ends here. Continue reading the full article.

Illustrations

Border Gateway Protocol illustration
Border Gateway Protocol: A typical configuration of a BGP RR deployment.[39]: §6
A typical configuration of a BGP RR deployment.[39]: §6
Border Gateway Protocol: BGP table growth on the Internet
BGP table growth on the Internet
Border Gateway Protocol: Number of AS on the Internet vs number of registered AS
Number of AS on the Internet vs number of registered AS

Worked examples

Example 1 — a first encounter with Border Gateway Protocol

Start with the simplest possible case. Write down what Border Gateway Protocol claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Border Gateway Protocol before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Border Gateway Protocol ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Border Gateway Protocol

In research
Border Gateway Protocol appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Border Gateway Protocol in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Border Gateway Protocol is common in secondary-school and first-year university syllabi. It links to neighbouring topics Application layer protocols, Internet Standards, Internet architecture, so understanding it makes those chapters shorter.
In everyday life
Look for Border Gateway Protocol outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Border Gateway Protocol” →

How to study Border Gateway Protocol in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Border Gateway Protocol means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Border Gateway Protocol out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Border Gateway Protocol in simple terms?

Border Gateway Protocol (BGP) is a standardized exterior gateway protocol designed to exchange routing and reachability information among autonomous systems (AS) on the Internet. BGP is classified as a path-vector routing protocol, and it makes routing decisions based on paths, network policies, or…

Why does Border Gateway Protocol matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Border Gateway Protocol?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Border Gateway Protocol.

Tags

  • Application layer protocols
  • Internet Standards
  • Internet architecture
  • Internet properties established in 1994
  • Internet protocols
  • Routing protocols

Keep exploring