solution - Computer Network : Routing algorithm (Test 1)
Question : Why is link-state routing considered more efficient than distance vector routing?
Solution :
484520260403090209 Correct Answer : It maintains a complete network topology and avoids routing loops
Description -
The correct answer is It maintains a complete network topology and avoids routing loops.
Detailed Explanation
Link-state routing protocols (like OSPF and IS-IS) are structurally more efficient than distance vector protocols (like RIP) because of how they map the network and handle updates.
- Complete Topology Map: In link-state routing, every router maintains an identical, comprehensive map (topology) of the entire network. This means each router has full visibility into how all routers and networks connect, allowing it to calculate the absolute shortest path independently using Dijkstra's algorithm.
- Loop Prevention: Because every router sees the entire network blueprint, they can instantly identify and avoid routing loops. Distance vector protocols, by contrast, route "by rumor" (only knowing what their immediate neighbors tell them), making them highly susceptible to loops and slow convergence issues like the "count-to-infinity" problem.
Why the other options are incorrect:
- It sends entire routing tables periodically: This describes distance vector routing, which is highly inefficient because it constantly consumes bandwidth by broadcasting its whole table at set intervals. Link-state only sends small updates when a change occurs.
- It relies only on neighbor information: This also describes distance vector Link-state routers listen to neighbors but use that information to flood the network and build a global map.
- It does not require any updates: All dynamic routing protocols require updates to adapt to network changes, failures, or new paths.
Question : Which phase ensures that every router has the same network topology information?
Solution :
729920260403090122 Correct Answer : Reliable Flooding
Description -
The correct answer is Reliable Flooding.
Detailed Explanation
For link-state routing protocols (like OSPF) to function correctly, every single router in the network area must build an identical map of the entire network. This uniformity is achieved through the Reliable Flooding phase.
- The Flooding Process: When a router detects a change in its links (or during initial startup), it generates a Link-State Advertisement (LSA). It then sends this packet out of all its active interfaces to its immediate neighbors.
- Reliability Mechanism: The neighbors receive this information, copy it to their own link-state database (LSDB), and forward it out of all their interfaces (except the one it came from). This rapid, hop-by-hop distribution ensures the update propagates across the entire network almost instantly. It is "reliable" because routers use acknowledgements to ensure that no packets are dropped or lost along the way, guaranteeing that every router's database remains perfectly synchronized.
Why the other options are incorrect:
- Route Calculation: This occurs after flooding is complete. Once all routers have the same topology map, they independently run Dijkstra's algorithm to calculate the best paths.
- Packet Forwarding: This is the actual day-to-day operation of moving user data packets from an input interface to an output interface based on the routing table.
- Load Balancing: This is a capability where a router splits traffic across multiple paths of equal cost to optimize bandwidth, unrelated to synchronizing the topology map.
Question : What is the role of the sequence number in LSP/LSA packets?
Solution :
593520260403090044 Correct Answer : To identify duplicate or outdated information
Description -
The correct answer is To identify duplicate or outdated information.
Detailed Explanation
During the Reliable Flooding phase of link-state routing, Link-State Packets (LSPs) or Link-State Advertisements (LSAs) are rapidly copied and forwarded by multiple routers across the network. Because packets can take different paths, a router might receive the same update multiple times, or it might receive an older update after a newer one has arrived.
The sequence number acts as a structural timeline indicator to solve this problem:
- Identifying Duplicates: When a router receives an LSP/LSA, it checks the sequence number. If the number matches an entry already stored in its Link-State Database (LSDB), the router knows it is a duplicate and instantly drops it, preventing unnecessary processing.
- Filtering Outdated Information: If a router receives an LSP/LSA with a sequence number lower than what is already in its database, it recognizes the incoming packet as outdated (old) information and discards it.
- Accepting Fresh Data: A router will only update its topology map and flood the packet further if the incoming sequence number is higher than its currently stored version, ensuring the network converges on the most recent updates.
Why the other options are incorrect:
- To reduce bandwidth usage: The sequence number itself takes up header space, slightly increasing packet size. While dropping duplicates indirectly saves resources, its primary, structural role is identification, not compression or bandwidth reduction.
- To increase transmission speed: Sequence numbers do not alter physical line speeds or scheduling priorities; they are used strictly for logical validation.
- To encrypt routing data: Sequence numbers are transmitted in plain text as part of the packet header and provide no security or cryptographic properties.
Question : Which algorithm is used in link-state routing to determine the shortest path?
Solution :
758220260403090006 Correct Answer : Dijkstra’s Algorithm
Description -
The correct answer is Dijkstra’s Algorithm.
Detailed Explanation
Once the reliable flooding phase is complete and every router has an identical map of the network topology, each router independently runs Dijkstra's Algorithm (also known as the Shortest Path First, or SPF, algorithm).
- How it works: The router treats itself as the root of the network graph (the starting point). It then evaluates the cumulative link metrics (costs, such as bandwidth or delay) to every other router and network segment. By systematically calculating the path with the lowest overall cost, it builds a loop-free Shortest Path Tree (SPT). The results of this calculation are then used to populate the router's forwarding table.
- Why it matters: Because every router runs the algorithm using the exact same network map, they arrive at mutually consistent, loop-free paths, enabling rapid network convergence.
Why the other options are incorrect:
- Bellman-Ford Algorithm: This algorithm is used by distance vector routing protocols (like RIP) where routers calculate paths iteratively based on updates from immediate neighbors, rather than a full map.
- Flood Fill Algorithm: This is a computer graphics and matrix traversal algorithm used to determine connected areas (like the "bucket fill" tool in paint programs), not for network routing.
- Kruskal’s Algorithm: This is a graph algorithm used to find a Minimum Spanning Tree (MST) that connects all nodes together with the lowest total weight without any cycles. Routing requires finding paths to specific destinations from a root source, which is what Dijkstra's algorithm provides.
Question : What is the primary function of Link State Advertisements (LSAs) in link-state routing?
Solution :
195720260403085922 Correct Answer : To distribute information about directly connected links to all routers
Description -
The correct answer is To distribute information about directly connected links to all routers.
Detailed Explanation
In link-state routing protocols (such as OSPF), routers do not share their finalized routing decisions. Instead, they share raw structural data about their own local environment using Link State Advertisements (LSAs).
- Sharing the Blueprint: The primary job of an LSA is to describe a router's local connectivity. It contains specific details about the router's directly connected links, the types of networks attached, the status of those links (up or down), and the associated metric/cost.
- Global Distribution: When an LSA is generated, it is flooded reliably throughout the entire network area. This ensures that every individual router receives the LSA and adds it to their local collection, ultimately building an identical, global map of the network topology.
Why the other options are incorrect:
- To store routing tables locally: LSAs are the packets used to transmit network information. The actual local storage for this data is called the Link-State Database (LSDB).
- To share complete routing tables with neighbors: This is how distance vector protocols operate. Link-state routers only share their local link statuses, not their complete calculated routing tables.
- To calculate shortest path directly: An LSA is simply a data packet containing topology information. The actual path calculation is performed later by the router's CPU using Dijkstra's algorithm.
Question : Which of the following is a major disadvantage of Distance Vector Routing?
Solution :
29620260403085814 Correct Answer : Slow convergence and routing loops
Description -
The correct answer is Slow convergence and routing loops.
Detailed Explanation
The structural design of Distance Vector routing protocols (like RIP) introduces several architectural weaknesses, the most significant being how they react to network changes:
- Slow Convergence: Distance vector routers route "by rumor"—they do not have a complete map of the network and only know what their immediate neighbors tell them. When a link fails, this information must update step-by-step, neighbor by neighbor, across the network. This slow propagation means it takes a long time for all routers to agree on the new network layout (slow convergence).
- Routing Loops: Because updates are slow and periodic, different routers can hold conflicting information at the same time. This frequently leads to routing loops, where packets bounce back and forth between routers indefinitely. A classic manifestation of this is the "Count-to-Infinity" problem, where two routers continually increment the distance metric to a failed network, believing the other still has a valid path.
Why the other options are incorrect:
- High computational complexity: This is a disadvantage of Link-State routing, not Distance Vector. Distance Vector requires very little CPU power or memory because routers only run simple math on tables provided by neighbors.
- Fast convergence: This is a characteristic of Link-State routing. Distance Vector is notoriously slow to adapt.
- Requires global network knowledge: This is a requirement of Link-State routing (which forces every router to maintain an identical topology database of the entire network). Distance Vector routers only require localized knowledge of their immediate neighbors.
Question : What metric is primarily used in Distance Vector Routing (e.g., in RIP)?
Solution :
214520260403085723 Correct Answer : Hop count
Description -
The correct answer is Hop count.
Detailed Explanation
Distance Vector routing protocols, specifically the Routing Information Protocol (RIP), evaluate paths based on distance, and they define that distance using a metric called hop count.
- Counting the Hops: A "hop" represents a packet passing through a single router to move from one network segment to the next. When a router calculates the path to a destination network, it simply counts how many intermediate routers the data must pass through. The path with the fewest routers (lowest hop count) is selected as the best route and added to the routing table.
- The Infinity Metric: To prevent packets from circulating endlessly during a routing loop, RIP defines a maximum hop count of 15. Any network destination that is 16 hops away is considered unreachable (equivalent to infinity).
Why the other options are incorrect:
- Bandwidth: RIP completely ignores link speeds. A slow 56 Kbps serial link that is 1 hop away will be chosen over a blazing-fast 10 Gbps fiber optic connection that takes 2 hops, making it less optimal than link-state protocols (like OSPF) which use bandwidth as a metric.
- Delay: While some advanced distance vector/hybrid protocols (like EIGRP) include delay in their complex metric formulas, standard distance vector protocols like RIP do not look at physical latency.
- Packet size: Packet size (MTU) does not dictate path preference or vector distances in dynamic routing protocols.
Question : In Distance Vector Routing, routers share routing information:
Solution :
5420260403085638 Correct Answer : Only with directly connected neighbors
Description -
The correct answer is Only with directly connected neighbors.
Detailed Explanation
Distance Vector routing protocols (like RIP) operate on a decentralized, localized communication model often described as "routing by rumor."
- Localized Sharing: A distance vector router does not have a global view of the entire network. Instead, it periodically broadcasts or multicasts its entire routing table, but it sends this information only to its immediate, directly connected neighbors.
- Step-by-Step Propagation: When a neighbor receives this table, it adds its own local cost to the metrics, updates its own routing table, and then passes its updated table along to its direct neighbors. Information travels through the network step-by-step, like a chain reaction, rather than being broadcast to everyone at once.
Why the other options are incorrect:
- With all routers in the network: This describes Link-State routing (like OSPF), where routers flood their link status information globally so that every router receives a copy.
- Only with the central server: Traditional dynamic routing protocols are peer-to-peer and decentralized. There is no central server managing the routing information.
- Only when requested: While some protocols support triggered updates when a link fails, standard distance vector protocols primarily share their information periodically (at fixed intervals, like every 30 seconds in RIP), regardless of whether an update is requested.
Question : The Distance Vector Routing Algorithm is based on which of the following algorithms?
Solution :
868520260403085551 Correct Answer : Bellman-Ford Algorithm
Description -
The correct answer is Bellman-Ford Algorithm.
Detailed Explanation
The core mathematical foundation of the Distance Vector Routing Algorithm is the Bellman-Ford Algorithm (and in some variations, the Ford-Fulkerson algorithm).
- How it applies to routing: The Bellman-Ford algorithm calculates the shortest paths from a single source vertex to all other vertices in a weighted graph. It does this iteratively. In network routing, each router runs a decentralized version of this math: it takes the distances to destinations reported by its immediate neighbors and adds the cost to reach those neighbors.
- The Routing Equation: It structurally relies on the equation:
\(D_{x}(y)=\min _{v}\{c(x,v)+D_{v}(y)\}\)
(Where the distance from router \(x\) to destination \(y\) is the minimum cost to a neighbor \(v\) plus that neighbor's reported distance to \(y\)).
Why the other options are incorrect:
- Dijkstra Algorithm: This is used by Link-State routing protocols (like OSPF) to compute the shortest path tree after building a complete network map.
- Kruskal Algorithm: This is a greedy algorithm used in graph theory to find a Minimum Spanning Tree (MST), which connects all nodes with the lowest total edge weight without creating any loops. It is not used for point-to-point network routing.
- Prim’s Algorithm: Like Kruskal's, Prim's algorithm is designed to find a Minimum Spanning Tree starting from a single node, rather than calculating shortest routing paths to distinct destinations.
Question : Which of the following characteristics is NOT associated with the Distance Vector Routing Algorithm?
Solution :
919220260403085512 Correct Answer : Centralized
Description -
The correct answer is Centralized.
The Distance Vector Routing Algorithm is inherently a decentralized protocol. It does not rely on a central server, controller, or single master router to compute paths or dictate traffic rules. Instead, every router acts independently as a peer, calculating its own routes based solely on information received from its immediate neighbors.
Why the other characteristics ARE associated with Distance Vector:
- Iterative: The algorithm runs in rounds or iterations. Routers continuously calculate, update, and pass their tables along until no more new information is exchanged and the network stabilizes (converges).
- Asynchronous: Routers do not need to operate in perfect lockstep or clear their tables at the exact same millisecond. Each router sends updates on its own local timer or asynchronously when a local link status changes (triggered updates).
- Distributed: The actual computation of the network paths is shared (distributed) among all participating nodes. No single router performs the work for the whole network; each calculates its own "vector" of distances.
Question : Which of the following best differentiates adaptive and non-adaptive routing?
Solution :
462620260403084859 Correct Answer : Adaptive considers topology and traffic
Description -
The correct answer is Adaptive considers topology and traffic.
Detailed Explanation
The fundamental difference between these two routing philosophies lies in how they react to the dynamic, real-time state of the network:
- Adaptive Routing (Dynamic Routing): These algorithms make routing decisions based on the current state of the network. They continuously monitor changes in network topology (e.g., node or link failures) and traffic load (e.g., congestion or line delay). If a link goes down or becomes heavily congested, adaptive protocols (like OSPF or RIP) automatically calculate a new, optimal path to bypass the issue.
- Non-Adaptive Routing (Static Routing): These algorithms do not base their routing decisions on any measurements or estimates of the current traffic and topology. Instead, the routes are pre-calculated offline and loaded directly into the routers when the network is booted up. Once configured, a non-adaptive route stays exactly the same unless a network administrator manually changes it.
Why the other options are incorrect:
- Adaptive uses fixed routes: This is the exact opposite of reality; non-adaptive routing uses fixed, unchanging routes.
- Non-adaptive uses network conditions: Non-adaptive routing completely ignores current network conditions, which is why it cannot route around sudden link failures.
- Both are identical: They represent two completely opposite approaches to network path selection.
Question : Which routing method sends packets to a random neighbor node?
Solution :
274620260403084755 Correct Answer : Random Walk
Description -
The correct answer is Random Walk.
Detailed Explanation
Random Walk is a simplistic, probabilistic routing method where a router selects exactly one of its neighbors at random and forwards the incoming packet to it.
- How it works: When a node receives a packet, it does not look at a complex topology map or calculate the shortest path. Instead, it picks any available output link—either purely at random or using a weighted probability (such as favoring links with lower traffic)—and sends the packet on its way. The packet essentially "walks" randomly from hop to hop until it accidentally hits its destination node.
- Use Case: While highly inefficient for high-speed data networks, it requires absolutely zero routing tables, consumes minimal memory, and is highly resilient against network changes or node failures since it doesn't rely on fixed paths.
Why the other options are incorrect:
- Flooding: In this method, a router sends incoming packets to all of its neighbors simultaneously (except the one the packet arrived on), rather than picking a single random neighbor.
- Distance Vector: This method uses specific mathematical metrics (like hop count) stored in a local table to intentionally choose the best determined path to a destination.
- Link State: This method relies on complete global topology awareness and running Dijkstra's algorithm to deliberately forward packets along a precisely calculated shortest path tree.
Question : Which statement is correct about Non-Adaptive Routing?
Solution :
480320260403084719 Correct Answer : It uses pre-defined routing tables
Description -
The correct answer is It uses pre-defined routing tables.
Detailed Explanation
Non-Adaptive Routing (commonly known as Static Routing) is a straightforward method where the paths packets take through a network are determined beforehand.
- Pre-defined Paths: A network administrator manually configures fixed routes into each router's routing table. The router refers to these static, pre-defined tables to forward packets and completely ignores any changing conditions.
- No Real-Time Adjustments: Because the tables do not update automatically, a non-adaptive routing system cannot adapt if a link suddenly breaks down or becomes heavily congested. The traffic will continue to follow the pre-defined path until an administrator manually changes the configuration.
Why the other options are incorrect:
- It adjusts routes based on traffic: This describes Adaptive (Dynamic) routing, which can look at congestion metrics and divert packets away from heavy traffic.
- It uses real-time topology changes: This also describes Adaptive routing, which listens for network changes (like link failures) to calculate new paths instantly.
- It is highly complex: Non-adaptive routing is mathematically very simple. It requires minimal processing power and memory because the router doesn't run complex algorithms (like Dijkstra or Bellman-Ford) to find paths.
Question : What is the main disadvantage of the flooding algorithm?
Solution :
849120260403084633 Correct Answer : Packet duplication
Description -
The correct answer is Packet duplication.
Detailed Explanation
The Flooding Algorithm is a brute-force routing method where a router takes an incoming packet and forwards a copy of it out of all its active interfaces (except the one the packet arrived on).
- Exponential Traffic Growth: Because every router that receives the packet repeats this exact same process, the number of duplicate packets in the network multiplies exponentially.
- Broadcast Storms: If there is no mechanism to limit this process (such as a Time-To-Live counter or a list of previously seen packets), the duplicate packets will circulate indefinitely, creating loops. This massive amount of packet duplication clogs up communication links and consumes immense network bandwidth and router CPU cycles, frequently leading to network crashes known as broadcast storms.
Why the other options are incorrect:
- High delay: Flooding actually achieves the lowest possible delay for the first successful packet because it tries every single path through the network simultaneously, ensuring the quickest path is automatically found.
- Low security: While flooding exposes data to more nodes, security issues are typically resolved through encryption at higher layers rather than the routing method itself.
- Complex implementation: Flooding is incredibly simple to implement. A router does not need to maintain complex topology maps, track neighbor statuses, or run shortest-path algorithms; it simply duplicates incoming packets.
Question : Which of the following is a type of Non-Adaptive Routing Algorithm?
Solution :
307020260403084549 Correct Answer : Flooding
Description -
The correct answer is Flooding.
Detailed Explanation
As established earlier, Non-Adaptive Routing Algorithms (Static Routing) do not base their routing decisions on active measurements or real-time estimates of traffic and topology. Instead, the path a packet takes is either rigidly predetermined or driven by a simple, fixed rule that completely ignores current network health or link congestion.
- Why Flooding fits here: Flooding is a static, non-adaptive rule-based algorithm. When a router receives a packet, it doesn't check dynamic routing tables or calculate optimal paths based on link status. It blindly duplicates the packet and sends it out on every available link (except the incoming one). The algorithm does not adapt its forwarding path if a specific link becomes heavily congested or slow—it continues to push the packet down every single avenue regardless of network conditions.
Why the other options are incorrect:
- Distance Vector: This is an adaptive (dynamic) algorithm. It relies on routers continuously exchanging metrics with neighbors to dynamically update tables and route around network changes.
- Link State: This is an adaptive (dynamic) algorithm. It forces routers to monitor their link states continuously and run Dijkstra's algorithm to adapt paths when links go up or down.
- OSPF (Open Shortest Path First): This is a specific routing protocol that implements Link State It is highly adaptive and changes forwarding paths automatically based on link health and metrics.
Question : In which type of routing algorithm does each node only have knowledge of its directly connected links?
Solution :
292020260403084502 Correct Answer : Distributed algorithm
Description -
The correct answer is Distributed algorithm.
Detailed Explanation
In a distributed routing algorithm, the calculation of paths is shared among all the routers in the network. No single machine has the complete picture of the network topology from the start. Instead:
- Localized Knowledge: Each individual node begins with information only about its own directly connected links (the cost to reach its immediate neighbors).
- Iterative Exchange: To learn about distant networks, nodes must participate in an iterative process of exchanging routing information back and forth with their neighbors (as seen in distance vector protocols like RIP).
Why the other options are incorrect:
- Centralized algorithm: In a centralized system, a single central controller has complete global knowledge of the entire network topology and all link costs. The individual nodes do not calculate routes; they simply request paths from the central server.
- Flooding: This is a brute-force forwarding method where a router blindly duplicates an incoming packet onto all outgoing links. While it operates locally, it is classified as a static/non-adaptive routing rule rather than a network-wide path-calculation algorithm.
- Static routing: This simply refers to manual path configuration by a network administrator. The configuration itself can reflect global network layouts and doesn't inherently mandate that a router only holds local link info.
Question : Which routing algorithm uses global knowledge of the network to compute the shortest path?
Solution :
728720260403084426 Correct Answer : Centralized algorithm
Description -
The correct answer is Centralized algorithm.
Detailed Explanation
A centralized routing algorithm (sometimes referred to as a global routing algorithm) computes the least-cost path between a source and destination by utilizing complete, global knowledge of the network.
- Global Awareness: Before running any calculations, the algorithm must know exactly how every node connects to every other node, as well as the current cost (metric) of every single link in the entire network.
- Implementation: This can be implemented by having a single central controller collect all topology data, compute the paths, and download the forwarding instructions to the routers (as seen in Software-Defined Networking, or SDN). Alternatively, in traditional decentralized architectures, a protocol like Link-State (OSPF) forces every individual router to obtain this global network blueprint before independently running the centralized calculation (Dijkstra's algorithm) locally.
Why the other options are incorrect:
- Distributed algorithm: In a distributed algorithm (like Distance Vector/Bellman-Ford), no single node has a complete map of the network. Instead, routers calculate paths iteratively by exchanging information solely with their immediate neighbors.
- Isolation algorithm: These algorithms route packets using only local information available within the node itself (such as internal queue lengths), completely ignoring the state of other nodes or links in the network.
- Random walk: This is a simplistic method where a router blindly selects a single neighbor at random to forward a packet, utilizing zero network topology knowledge.
Question : Adaptive routing algorithms are also known as:
Solution :
236420260403084337 Correct Answer : Dynamic routing
Description -
The correct answer is Dynamic routing.
Detailed Explanation
Adaptive routing algorithms and dynamic routing protocols are two names for the exact same system. They are designed to adapt automatically to changing network environments.
- Dynamic Behavior: When these algorithms run on a network, routers continuously monitor link metrics, traffic congestion, and network topology. If a link goes down or a path becomes slow, the routers dynamically exchange new information and automatically compute a new path to the destination without any human intervention. Examples include OSPF, RIP, and EIGRP.
Why the other options are incorrect:
- Static routing: This is another name for Non-Adaptive routing. These routes are manually configured by a network administrator and do not change dynamically when network conditions alter.
- Flood routing: This is a specific static, rule-based forwarding method where a packet is copied and sent out of every interface, regardless of the network state.
- Default routing: This is a specific static configuration (often a gateway of last resort, like 0.0.0/0) used by a router when it cannot find a matching destination network in its routing table.
Question : Which of the following metrics is NOT typically used by routing algorithms?
Solution :
815120260403084304 Correct Answer : Temperature
Description -
The correct answer is Temperature.
Detailed Explanation
Routing protocols select the best path through a network by evaluating specific parameters called metrics. A metric is a measurable value assigned to a route; the routing algorithm always selects the path with the lowest overall metric value.
- Why Temperature is NOT used: Physical environmental factors, such as the ambient room temperature of a data center or the running temperature of a router's CPU, are entirely irrelevant to logical path optimization. Routing metrics are strictly focused on data transmission efficiency, link quality, and network performance, none of which are directly determined by temperature.
Why the other options ARE typical metrics:
- Hop count: Used by protocols like RIP to count the total number of intermediate routers a packet must cross to reach its destination.
- Bandwidth: Used by protocols like OSPF to favor high-speed links (like 10 Gbps fiber) over slower links (like 10 Mbps copper).
- Delay: Used by protocols like EIGRP to measure the time it takes for a packet to travel across a link, ensuring traffic avoids latent or heavily congested paths.
Question : What is the primary goal of a routing algorithm in a computer network?
Solution :
16620260403084223 Correct Answer : To determine the least-cost path between source and destination
Description -
The correct answer is To determine the least-cost path between source and destination.
Detailed Explanation
The fundamental purpose of a routing algorithm is to steer packets through a web of interconnected routers from the sending host to the receiving host as efficiently as possible.
- The Least-Cost Concept: In networking, the "best" path isn't always about the shortest physical distance. Instead, networks use metrics (such as bandwidth, delay, hop count, or monetary cost) to assign a "weight" to each link. The primary goal of the routing algorithm is to calculate a path through the network graph where the cumulative sum of these link weights is minimized—known mathematically as the least-cost path.
Why the other options are incorrect:
- To encrypt data packets: This is a security function handled at higher layers of the OSI model (like the Presentation or Transport Layer using TLS/IPsec), not by the Network Layer routing algorithm.
- To find the shortest physical distance: A path that is physically short (e.g., a 10-meter copper wire) might have terrible bandwidth (10 Mbps), while a physically long path (e.g., a trans-oceanic fiber optic cable) might be blazing fast (100 Gbps). Routing algorithms prioritize link quality and cost over geographic distance.
- To increase bandwidth: Routing algorithms cannot change the physical capacity or hardware capabilities of a link; they can only choose the most optimal path out of the bandwidth options that already exist.