## Description

- In the IPv4 addressing format, the number of networks allowed under Class C addresses is _____________
- The network 198.78.41.0 is a _____________

(a) Class A networkÂ Â Â Â Â Â (b) Class B network

- Class C network
- Class D network

- In a classful addressing, first three bits in Class C IP address is __________

*Subnetting**: **Subnetting** is the practice of dividing a network into two or more smaller networks. **Â *

*To understand subnetting, please go through the links given below: *

https://study–ccna.com/subnetting–explained/

*Subnetting is done with the help of subnet mask as explained in here: *

https://study–ccna.com/subnet–mask/ https://study–ccna.com/create–subnets/

*CIDR (Classless inter-domain routing)** is a method of public IP address assignment which tackles the problem of IP address exhaustion problem (i.e., more networks and computers than the number of IP addresses available). It uses subnetting and supernetting principle for efficient allocation of IP addresses to computers. *

https://study–ccna.com/cidr–classless–inter–domain–routing/ https://www.ionos.com/digitalguide/server/know–how/cidr–classless–inter–domain–routing/

- If a class B network on the Internet has a subnet mask of 255.255.248.0, what is the maximum number of hosts per subnet?
- (Multiple Choice Question) The subnet mask for a particular network is 255.255.31.0 Which of the following pairs of IP addresses could belong to this network?

- 57.88.62 and 172.56.87.233
- 35.28.2 and 10.35.29.4
- 203.31.87 and 191.234.31.88
- 8.129.43 and 128.8.161.55

- In a class B subnet, we know the IP address of one host and the mask as given below:

IP address: 125.134.112.66

Mask: 255.255.224.0

What is the first address (Network address)?

- The broadcast address for IP network 172.16.0.0 with subnet mask 255.255.0.0 is _____________

- Consider the graph given below:

- In the above graph, nodes represent the routers, and edges represent the link costs between the routers.
- Apply Distance Vector Routing on the above graph, and determine the shortest path between every pair of nodes.
- Initially every router/node will build its own routing table based on the link cost value of its adjacent neighbors.
- In each iteration, every node will then subsequently share the distance vectors to its neighbors, who will update their own routing table based on Bellman-Ford Distance update equation (dx(y) = min (cost(x,v)+dv(y) for all v). This process continues till convergence is achieved.

**Your Task: **Show the contents of the routing table initially for all the nodes, and update the routing table accordingly as mentioned in each iteration. The number of iterations ideally should be equal to the number of nodes present in the graph, after which convergence is achieved. Finally, show the contents of the routing table corresponding to every node.

Based on the output of the algorithm, write down the shortest path between every pair of nodes in the graph using the values in the routing table.

A typical routing table will consist of 3 entries primarily: Destination Node name, Distance, Next Hop Name.

For example, initially, routing table for node A is:

Destination | Distance Value (which is the link cost value) | Next Hop |

A | 0 | A |

B | 4 | B |

C | Infinity | – |

D | Infinity | – |

E | Infinity | – |

Routing Table for B is:

Destination | Distance Value (which is the link cost value) | Next Hop |

A | 4 | A |

B | 0 | B |

C | 1 | C |

D | Infinity | – |

E | 5 | E |

**Link State Routing:**

Consider the graph shown below:

- Apply Dijkstraâ€™s algorithm, and determine the shortest path between:

(a) Â node A and node E (b) Node A and node D

- What is the time complexity of Dijkstraâ€™s algorithm? Explain how you obtained the above answer? Can we do better, how to do so and what will be the lowest time complexity in such a case?

3