before it stops and waits for an acknowledgment. For example, if 1000-byte packets are being sent, BGP would stop and wait for an acknowledgment only when 65 packets had not been acknowledged, when using the maximum window size. TCP is designed to use a sliding window in which the receiver acknowledges at the halfway point of the sending window. This method allows any TCP application, such as BGP, to continue to stream packets without having to stop and wait as OSPF or EIGRP would require.
Content 6.1 BGP Concepts and Terminology 6.1.10 BGP Databases A router running BGP keeps several tables to store BGP information that it receives from and sends to other routers. These tables include a neighbor table, a BGP table (also called a forwarding database or topology database), and an IP routing table. For BGP to establish an adjacency, you must configure it explicitly for each neighbor. BGP uses TCP as its transport protocol (port 179). It forms a TCP connection with each of the configured neighbors and keeps track of the state of these relationships by periodically sending a BGP TCP keepalive message. Note
BGP sends TCP keepalives every 60 seconds by default. Routers that run a BGP routing process are often referred to as BGP speakers. Two BGP speakers that form a TCP connection between one another for the purpose of exchanging routing information are referred to as neighbors or peers. After establishing an adjacency, the neighbors exchange the BGP routes that are in their IP routing table. Each router collects these routes from each neighbor that successfully establishes an adjacency and then places them in its BGP forwarding database. All routes that have been learned from each neighbor are placed into the BGP forwarding database. The best routes for each network are selected from the BGP forwarding database using the BGP route selection process and then offered to the IP routing table. Each router compares the offered BGP routes to any other possible paths to those networks, and the best route, based on administrative distance, is installed in the IP routing table. EBGP routes (BGP routes learned from an external autonomous system) have an administrative distance of 20. IBGP routes (BGP routes learned from within the autonomous system) have an administrative distance of 200.
Content 6.1 BGP Concepts and Terminology 6.1.11 BGP Message Types The four BGP message types are open, keepalive, update, and notification. After a TCP connection is established, the first message sent by each side is an open message. If the open message is acceptable, the side that receives the message sends a keepalive message confirming the open message. After the receiving side confirms the open message and establishes the BGP connection, the BGP peers can exchange any update, keepalive, and notification messages. BGP peers initially exchange their full BGP routing tables. Incremental updates are sent only after topology changes in the network. BGP peers send keepalive messages to ensure that the connection between the BGP peers still exists. They send notification packets in response to errors or special conditions. Here are more details about the different types of BGP messages: Interactive Media Activity Drag and Drop: BGP Message Types Upon completion of this activity, the student will be able to identify the properties of BGP messages types.
Content 6.2 EBGP and IBGP 6.2.1 BGP Neighbor Relationships No one router can handle every connection with all the routers that run BGP. Tens of thousands of routers run BGP and are connected to the Internet, representing more than 21,000 autonomous systems. A BGP router forms a direct neighbor relationship with a limited number of other BGP routers. Through these BGP neighbors, a BGP router learns of the paths through the Internet to reach any advertised network. Any router that runs BGP is known as a BGP speaker. The term “BGP peer” has a specific meaning: a BGP speaker that is configured to form a neighbor relationship with another BGP speaker for the purpose of directly exchanging BGP routing information with each other. A BGP speaker has a limited number of BGP neighbors with which it peers and forms a TCP-based relationship. BGP peers are also known as BGP neighbors and can be either internal or external to the autonomous system. A BGP peer must be configured with the BGP neighbor command. The administrator instructs the BGP speaker to establish a relationship with the address listed in the neighbor command and to exchange the BGP routing updates with that neighbor.
Content 6.2 EBGP and IBGP 6.2.2 Establishing a Connection Between External BGP Neighbors Recall that when BGP is running between routers in different autonomous systems, it is called EBGP. Generally, routers running EBGP are directly connected to each other. For two routers to exchange BGP routing updates, the TCP-reliable transport layer on each side must successfully pass the TCP three-way handshake before the BGP session can be established. Therefore, the IP address used in the BGP