Starting from:

$25

CS204-Assignment 3 Solved

CS 204: Computer Networks 

Assignment – 3 
 

1.       In the IPv4 addressing format, the number of networks allowed under Class C addresses is _____________

2.       The network 198.78.41.0 is a _____________

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

(c)   Class C network

(d)  Class D network

 

3.       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/ 
 

4.                   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?

5.                   (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?

(a)  172. 57.88.62 and 172.56.87.233

(b)  10.35.28.2 and 10.35.29.4

(c)   191.203.31.87 and 191.234.31.88

(d)  128.8.129.43 and 128.8.161.55

 

6.  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)?

 

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

8.  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
 

9. Link State Routing:

Consider the graph shown below:

 

1.       Apply Dijkstra’s algorithm, and determine the shortest path between:

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

2.       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?

 

More products