# Border Gateway Protocol

* **Border Gateway Protocol (BGP)** is a **routing protocol** used to **exchange routing information** between different networks.
* It helps networks **find the best path** for sending traffic.

***

#### ⚙️ **BGP Usage in AWS**

* Used by **AWS Direct Connect**:
  * Dynamically **advertises routes** between your on-premises network and AWS.
* Used by **AWS Dynamic Site-to-Site VPN**:
  * **Automatically updates routing** without manual changes when network paths change.

***

#### 🧠 **Quick Summary**

| Feature     | Description                                                 |
| ----------- | ----------------------------------------------------------- |
| Purpose     | Dynamically exchange routing information between networks   |
| Used In     | AWS Direct Connect and Dynamic Site-to-Site VPNs            |
| Key Benefit | **Automatic route updates** and **better network failover** |

<figure><img src="https://42327672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRTgPcl2FlnhXAydvRoXO%2Fuploads%2Fq0DjEkxsdkY6NipJMgb4%2Fimage.png?alt=media&#x26;token=f9d14f46-187a-425f-acad-5a810d87c0f5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://42327672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRTgPcl2FlnhXAydvRoXO%2Fuploads%2FKZXpJAHOwjuKLWTU6fc8%2Fimage.png?alt=media&#x26;token=1f70bf9a-7708-40a5-810e-c091cc7a8445" alt=""><figcaption></figcaption></figure>
