Internet Routing Flashcards

1
Q

What is Internet routing?

A

Internet routing is the process of determining the path that data packets take from a source to a destination across networks. It involves selecting optimal routes based on algorithms and maintaining routing tables for forwarding data efficiently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the difference between routing and forwarding?

A

Routing determines the overall end-to-end path that data packets follow through the network, while forwarding refers to the actual process of moving packets from one node to the next along the chosen path, based on the routing table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the key components that make up the Internet?

A

The Internet consists of applications like browsers and Skype, computing devices like laptops and smartphones, networking devices such as routers and switches, physical media like fiber optics and copper cables, and protocols like TCP/IP that manage communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are routing algorithms classified based on their scope?

A

Routing algorithms can be classified as global, where routers have a complete view of the network topology (like Link-State algorithms), or decentralized, where routers only know about their immediate neighbors (like Distance Vector algorithms).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How are routing algorithms classified based on their dynamics?

A

Routing algorithms can be static, where routes change infrequently, or dynamic, where routes adapt quickly to network changes through periodic updates or in response to link failures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the characteristics of load-sensitive and load-insensitive routing algorithms?

A

Load-sensitive algorithms adjust routing decisions based on current network traffic conditions, while load-insensitive algorithms do not consider traffic load and make decisions based on fixed metrics.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Dijkstra’s Algorithm?

A

Dijkstra’s Algorithm is a Link-State routing algorithm that computes the shortest paths from a source node to all other nodes in a network. It uses a greedy approach and relies on each router having a complete view of the network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the key steps of Dijkstra’s Algorithm?

A

First, initialize the source node’s distance to zero and all other nodes to infinity. Then, repeatedly select the node with the smallest tentative distance, update the distances of its neighbors if a shorter path is found, and continue until all nodes are processed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the time complexity of Dijkstra’s Algorithm?

A

The time complexity of Dijkstra’s Algorithm is O(N²), where N represents the number of nodes in the network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the Distance Vector (DV) Routing Algorithm?

A

The Distance Vector Routing Algorithm is a distributed algorithm where each router maintains a vector of distances to all other nodes, sharing this information with its neighbors to determine the shortest paths.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the key features of the Distance Vector Routing Algorithm?

A

It is distributed, meaning routers exchange information only with their direct neighbors; iterative, as updates continue until the network converges; and asynchronous, meaning routers update independently without a global clock.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Bellman-Ford equation used in Distance Vector Routing?

A

The Bellman-Ford equation calculates the shortest distance from one node to another by considering the minimum cost of reaching a destination through all possible neighbors. The formula is D(G, H) = min {c(G, E) + D(E, H)}.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the Count-to-Infinity problem in Distance Vector Routing?

A

The Count-to-Infinity problem occurs when routers take a long time to detect that a route is no longer available, causing incorrect routing information to propagate through the network and leading to routing loops.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does the Poisoned Reverse technique help mitigate the Count-to-Infinity problem?

A

In Poisoned Reverse, a router advertises an infinite cost for a route back to the neighbor from which it learned the route, preventing that neighbor from mistakenly routing traffic back through the original router, thereby avoiding loops.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why is hierarchical routing necessary in large networks like the Internet?

A

Hierarchical routing is essential because the Internet is too large for flat routing. It reduces the size of routing tables, minimizes the overhead of control messages, and allows for administrative control within different regions called Autonomous Systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an Autonomous System (AS) in Internet routing?

A

An Autonomous System is a collection of IP networks under a single administrative domain that operates using a common routing policy. It allows for more efficient routing within and between different organizations.

17
Q

What is RIP (Routing Information Protocol), and how does it work?

A

RIP is one of the earliest distance vector protocols. It uses hop count as a metric, with a maximum of 15 hops, and periodically exchanges routing information every 30 seconds between neighboring routers.

18
Q

What is OSPF (Open Shortest Path First), and how does it function?

A

OSPF is a Link-State routing protocol where each router maintains a map of the network. Routers use Dijkstra’s algorithm to compute the shortest path tree to all destinations, and updates are triggered by network changes rather than periodic broadcasts.

19
Q

What is BGP (Border Gateway Protocol), and what is its role in Internet routing?

A

BGP is the standard protocol for routing between Autonomous Systems on the Internet. It helps routers learn about reachability information for different networks, propagates this information across the Internet, and applies policies to control routing decisions.

20
Q

What types of messages are exchanged in BGP?

A

BGP uses several message types: OPEN to establish connections, UPDATE to advertise or withdraw routes, KEEPALIVE to maintain the connection, and NOTIFICATION to report errors and terminate connections if needed.

21
Q

How do Link-State and Distance Vector algorithms differ in terms of information sharing?

A

Link-State algorithms require routers to have a complete view of the network, sharing detailed topology information. In contrast, Distance Vector algorithms involve routers sharing only their distance vectors with immediate neighbors, without full knowledge of the entire network.

22
Q

What are the main advantages of hierarchical routing?

A

Hierarchical routing reduces the size of routing tables, limits the volume of routing updates, allows for better scalability, and supports policy-based routing between different administrative domains.

23
Q

How does a router update its Distance Vector in the DV algorithm?

A

A router updates its Distance Vector by applying the Bellman-Ford equation whenever it receives new distance information from its neighbors or when the cost of one of its direct links changes.

24
Q

What happens during the convergence process of the Distance Vector algorithm?

A

During convergence, routers continuously exchange and update distance vectors until all routers in the network agree on the shortest paths to all destinations, resulting in stable routing tables.

25
Q

What are the challenges of using Link-State algorithms in large, dynamic networks?

A

Link-State algorithms can face challenges such as slow response to rapid network changes, large memory requirements for maintaining full network topology, and high bandwidth usage for frequent link-state updates.

26
Q

How does OSPF handle network changes more efficiently than RIP?

A

OSPF responds to network changes immediately by triggering updates only when changes occur, while RIP relies on periodic updates, which can lead to slower convergence in dynamic environments.

27
Q

What is the role of gateway routers in hierarchical routing?

A

Gateway routers connect different Autonomous Systems and are responsible for handling both intra-AS and inter-AS routing, applying local routing policies and propagating routing information between networks.

28
Q

Why is BGP considered policy-based routing?

A

BGP allows network administrators to define routing policies that influence how traffic flows between Autonomous Systems. It considers factors beyond just the shortest path, such as business agreements and security preferences.

29
Q

How do routers in a Link-State protocol like OSPF maintain consistent routing tables?

A

Routers in OSPF flood the network with Link-State Advertisements (LSAs), ensuring all routers have the same network topology information. Each router independently computes the shortest paths using this consistent data.