Routing is the process of choosing a path for transferring data from a source to a destination. Routing is performed using devices called routers. In order to send the packet by determining the best route from one network to another, routing is carried out at the network layer. The network layer primarily makes sure that each packet arrives at its intended destination from the point of origin. Speaking about intradomain and interdomain routing, the basic difference between the two is that interdomain routing operates both within and across domains (a domain is a set of devices in a network that communicate and share data among each other), whereas intradomain routing operates only within a domain.
Let's discuss interdomain and intradomain routing separately, and then we'll look at the key differences.
Interdomain Routing is the protocol in which the routing algorithm works both within and between domains. Domains must be connected in some way, for hosts inside one domain to exchange data with hosts in other domains. This connection within domains is governed by the interdomain routing protocols. This is often done using the Border Gateway Protocol (BGP) . It is used in Path Vector Routing using which interdomain routing is performed. In path vector routing , the routing depends on the analysis of the path from the nodes in the current domain to the node in the other domain, and not on the distance between nodes.
Intradomain Routing is the routing protocol that operates only within a domain. In other words, intradomain routing protocols are used to route packets within a specific domain, such as within an institutional network for e-mail or web browsing. Unlike interdomain routing protocols, it doesn't communicate with other domains. There are two types of protocols used for intradomain routing:
Now that we know quite a bit about interdomain and intradomain routing protocols, let's look into some key differences between them.
Basis | Interdomain Routing | Intradomain Routing |
---|---|---|
Definition | The interdomain routing algorithms are used for routing within as well as with other domains. | The intradomain routing algorithms are used for routing within domains. |
Router information | It requires information about the routers in the current domain as well as other domains. | It requires information only about the routers in the current domain. |
Protocols | For interdomain routing, the protocols used are known as exterior-gateway protocols as they route traffic outside as well as inside a domain. | For intradomain routing, the protocols used are known as interior-gateway protocols as they route traffic within a domain. |
Types | Interdomain routing is done using Path Vector Routing which uses the Border Gateway Protocol (BGP). | Intradomain Routing is of two types: Distance Vector Routing (uses Routing Information Protocol (RIP) and Link State Routing (uses Open Shortest Path First (OSPF). |
Internet | The Internet is assumed to be a collection of interconnected autonomous systems by the interdomain routing protocol. | The internet outside the autonomous system is ignored by intradomain routing protocols. |