fbpx

How is priority defined between two routes with the same administrative distance?

When two routes have the same administrative distance (AD) in a routing system, the decision about which route is preferred is based on the route metric.

The metric is a value that helps the router determine the “cost” associated with using that route. The concept of “cost” can vary depending on the routing protocol used (for example, the hop count in RIP, the link cost in OSPF, or the value of the AS_PATH attribute in BGP), but in general, a lower metric indicates a preferred route over one with a higher metric.

Route Selection Process

  1. Administrative Distance (AD): It is the first criterion used to select the best route. The AD is an indicator of the reliability of the route source. The lower the number, the more preferred the route source. If there are multiple routes to the same destination with different AD, the route with the lowest AD is preferred.
  2. Metric: When two or more routes to the same destination have the same AD, the metric determines which of these routes is the best. The metric can be based on various factors such as bandwidth, delay, load, reliability, monetary cost, hop count, etc.
  3. Other Factors: If the routes have the same AD and identical metrics, the router can use other criteria to select the route, such as load balancing, where traffic is distributed among the routes based on the router's configuration.

Practical example

Suppose a router has two routes to the same destination:

  • Route 1: AD of 110 (by OSPF) with a metric of 10.
  • Route 2: AD of 110 (also by OSPF) with a metric of 20.

In this case, both routes have the same administrative distance, so the router will look at the metric to decide. Since Route 1 has a lower metric, it will be considered the best route and will be the one the router uses to send packets to that destination.

It is important to remember that the specific details of how the metric is calculated and how it compares to other routes may vary between different routing protocols and network configurations.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011