AD Value in Networking || Administrative Distance
One of the most important concepts in routing is administrative distance (AD). AD is a metric that determines the reliability or trustworthiness of a routing source. With the help of AD value, routers can easily choose the best route among multiple routes to the same destination. In this blog, we will explain the concept of AD or Administrative Distance in networking. We will discuss the different purposes of AD, how it operates, and its advantages and disadvantages. Before getting into more details, let’s first understand what AD value really is. Administrative Distance or AD Value represents a value assigned by routers to each route source. It is a numerical value assigned to different routing protocols to rank their trustworthiness when multiple routes to the same destination exist. Routers use AD to determine which route should be preferred when conflicting routes are learned from different sources. The lower the number, the higher the reliability or preference of that route source becomes. For instance, a route obtained from a connected interface possesses an AD value of 0 indicating it as the trusted option. On the other hand, a route learned through a static route carries an AD value of 1 signifying its considerable reliability but not as much as a directly connected route. If we consider a routing protocol like OSPF routes acquired through it have an AD value of 110. This value signifies that they are less reliable than a static route but more dependable than other dynamic routing protocols available. Below we have shown the Ad value and how the priority is chosen. AD is also referred to as route preference or route ranking; however, it is only utilized within routers. It is not shared with other routers in the network. Different router vendors usually have their predefined default values for AD associated with types of route sources. For example, if a router receives two routes for the same distance. One from OSPF (AD = 110) and another from EIGRP (AD = 90), the router chooses EIGRP as it has a lower AD value. For instance, when it comes to Cisco routers the default values of routing protocols that are used are as follows: Note: It is possible to modify the administrative distance value of a route using configuration commands. This can be helpful in situations where you want to influence the process of selecting routes based on your network design and preferences. For better understanding, we have explained the purpose of AD value below. The purpose of AD is to assist the router in selecting the optimal route, that is among multiple routes leading to the same destination. This situation can arise when the router is utilizing routing protocols or has sources providing routes for the same network. For better understanding, let’s consider a scenario where a router receives information about network 10.0.0.0/24 from three sources; a connected interface, a static route, and OSPF. The router will compare the AD values associated with these sources. Once it is done with comparing the values, it chooses the one with the value. In this case, since the connected interface has an AD of 0 which is the lowest it becomes the chosen route while disregarding others. AD also plays a role in preventing routing loops and ensuring routing operations. A routing loop occurs when packets are endlessly forwarded between routers without reaching their intended destination. This commonly happens due to inconsistent or incorrect routing information within the network. let’s consider two routers named R1 and R2 running OSPF and RIP for network 10.0.0.0/24 respectively. R1 receives information about this network from OSPF with an AD of 110. After that, it advertises to R2 via RIP with an AD of 120. R2 learns about this network from RIP with an AD of 120. After that, it advertises back to R1 via OSPF with an AD value of 110. This results in a situation where R1 and R2 continuously exchange packets with each other for the network 10.0.0.0/24. To avoid this, routers utilize administrative distance (AD) to filter out routes that are considered more reliable than their own. Administrative Distance operates by comparing the values of sources for different routes leading to the destination network. The router follows these steps to determine the route; When multiple routing protocols advertise the same destination network, the router follows these steps: Example: A router learns about 192.168.1.0/24 from two sources: Since EIGRP has a lower AD value (90 < 110), the router selects it as the preferred route. OSPF’s route will only be used if the EIGRP route fails. Yes! It is possible to change the Administrative Distance. Network engineers can manually configure AD values to influence route selection. This is done when it is required to override default preferences due to specific network design requirements. Modifying the AD of a Static Route: Router(config)# ip route 10.0.0.0 255.255.255.0 192.168.1.1 5 Here, the last number 5 represents the new AD value, making this route less preferred than the default static route (AD = 1). Changing the AD for OSPF Routes: Router(config-router)# distance 150 This sets OSPF AD to 150, making it less preferable than other protocols with lower AD values. Some of the advantages of AD are: Some of the disadvantages of AD are: OSPF has an AD value of 110 which gives it priority, over routing protocols like RIP or EIGRP. The value of the ad ranges from 0 to 255 and it is different for different protocols. RIP protocol operates as a distance vector routing protocol using hop count as a metric for routing decisions. It functions at the network layer of the OSI model. Possesses an AD value of 120—making it less reliable than some alternative routing protocols. The administrative distance values span from 0 to 255, on a scale where 0 signifies connectivity and 255 indicates a route. The BGP AD value depends on whether it is External BGP (eBGP) or Internal BGP (iBGP): Since lower AD values are more trusted, routers prioritize eBGP routes over iBGP when both advertise the same destination. Administrative Distance (AD Value) is a fundamental concept in networking that influences how routers select the best route among multiple options. Understanding default AD values and how to modify them allows network engineers to design more reliable and efficient networks. By effectively managing AD values, businesses can ensure better route prioritization, improved redundancy, and optimized network performance. If you want to learn more about such topics, you can explore our networking courses to enhance your skills in CCNA, CCNP, and advanced networking technologies.Introduction
What is AD Value in Networking?
Characteristics of Administrative Distance:
Default AD Value of Routing Protocols
Routing Protocols AD Value Connected Route 0 Static Route 1 BGP (External) 20 EIGRP (Internal routes) 90 IGRP 100 OSPF 110 IS-IS 115 RIP 120 EIGRP (external routes) 170 BGP (Internal) 200 DHCP Default Route 254 Unreliable source 255 Purpose of AD Value
How does Administrative Distance works?
How Does Administrative Distance Affect Routing Decisions?
Can you change the Administrative Distance?
How to Change AD Value?
Best Practices for Managing Administrative Distance
Advantages of Administrative Distance
Disadvantages of AD
Frequently Asked Questions
Q1. What is OSPF AD value?
Q2. What is the value of ad in protocol?
Q3. What is ad value in RIP protocol?
Q4. What is the range of ad value?
Q5. What is BGP AD value?
Conclusion