> For the complete documentation index, see [llms.txt](https://mudassirs46.gitbook.io/network-fundamentals/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mudassirs46.gitbook.io/network-fundamentals/dynamic-routing-protocol.md).

# Dynamic Routing Protocol

**Routing Rules:**

* * **Two directly connected devices must be in the same Subnet**

    (Two IP addresses, not separated from each other by a router, must be in the same subnet).
  * **Every Port of a Router must be in the different Subnet**

    (Two IP addresses, separated from each other by at least one router, must be in different subnets).
* [Router's ](https://app.gitbook.com/@mudassirs46/s/network-fundamentals/~/drafts/-MRZ8l67L5MHnaQIEh9W/router)Routing Table should be populated with Routes.&#x20;
* **Routes can be populated in 3 ways:**
* Directly connected Routes will automatically reflect in Router's Routing Table.
* Administrator can make Static Rote Entry in Router's Routing Table&#x20;
* Dynamic Routing Protocols will learn Routes Dynamically in Router's Routing Table.

|                      Static Routing                      |                   Dynamic Routing Protocol                  |
| :------------------------------------------------------: | :---------------------------------------------------------: |
|          Use Static Route when Network is simple         |     Use Dynamic Routing Protocol when Network is complex    |
|    Static Route paths are selected by an Administrator   |       DRP are responsible for the best path selection       |
| Requires minimum Resources (Memory,CPU, Bandwidth, etc.) | Requires sufficient Resources (Memory,CPU, Bandwidth, etc.) |

* **Routing Protocols role is:**
  * To learn about all the Networks.
  * To learn about all the paths to reach all the Networks.
  * To select the best path to reach all the Networks.
* Routing Protocol's messages are called Updates.
* **Routing Updates includes:**
* 1. Details of Networks on which Routing Protocol is operating
* 1. Routes that Routing Protocol has received from Neighbors.

## References:

RST Notes


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mudassirs46.gitbook.io/network-fundamentals/dynamic-routing-protocol.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
