# Types

Dynamic routing protocols can be divided into two main categories:

* **IGP** (Interior Gateway Protocol)
  * Used to share routes within a single *autonomous system (AS)*, which is a single organization (ie. a company).
* **EGP** (Exterior Gateway Protocol)
  * Used to share routes between different autonomous systems.

<figure><img src="https://1474932522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAgItg4KAZpnXjAFPWRf8%2Fuploads%2Fti5xZrsk3yrX5ZvMWZ9l%2FScreenshot%20from%202023-07-01%2009-42-02.png?alt=media&#x26;token=a4e1e9d9-7d19-4627-8930-9df4bff57bcd" alt=""><figcaption></figcaption></figure>

## Algorithm type

| Routing type | Algorithm type      | Protocol                                               |
| ------------ | ------------------- | ------------------------------------------------------ |
| IGP          | **Distance Vector** | Routing Information Protocol (**RIP**)                 |
|              |                     | Enhanced Interior Gateway Routing Protocol (**EIGRP**) |
|              | **Link State**      | Open Shortest Path First (**OSPF**)                    |
|              |                     | Intermediate System to Intermediate System (**IS-IS**) |
| EGP          | **Path Vector**     | Border Gateway Protocol (**BGP**)                      |
