Unit 4: Routing and IP Header - Subjective Questions

CSE306 — Computer Networks • Practice Questions with Detailed Answers

20 questions

1

Define a routing algorithm. Explain the major properties and classifications of routing algorithms.

2

Explain the shortest path routing algorithm using Dijkstra's algorithm. Find the shortest paths from node A for a network having links AB = 4, AC = 2, BC = 1, BD = 5, CD = 8, CE = 10, and DE = 2.

3

Explain the optimality principle and the concept of a sink tree in routing.

4

Describe distance vector routing and apply the Bellman-Ford equation to a network with links AB = 1, BC = 2, AC = 7, CD = 1, and BD = 6. Give the final distance vectors.

5

What is the count-to-infinity problem in distance vector routing? Explain techniques used to reduce it.

6

Describe the complete operation of link state routing, including neighbor discovery, link-state packet generation, flooding, and route calculation.

7

Compare distance vector routing and link state routing.

8

Explain hierarchical routing and state why it is required in large computer networks.

9

Draw or describe the IPv4 header and explain the function of each field.

10

An IPv4 datagram has a total length of 4000 bytes, including a 20-byte header. It must cross a link with an MTU of 1500 bytes. Explain the fragmentation and calculate the total length, fragment offset, and More Fragments flag of every fragment.

11

Explain the purposes of the TTL, Protocol, and Header Checksum fields in IPv4. How are TTL and checksum processed by a router?

12

Describe the IPv6 base header and explain the purpose of each field.

13

Compare the IPv4 and IPv6 headers and explain how IPv6 improves packet-forwarding efficiency.

14

What are IPv6 extension headers? Explain their ordering and the functions of important extension headers.

15

Explain IPv6 address notation and compression rules. Expand the address 2001:db8::8a2e:370:7334 and compress 2001:0db8:0000:0000:0000:ff00:0042:8329.

16

Explain the major types and scopes of IPv6 addresses, including unicast, multicast, and anycast.

17

An organization receives the IPv6 prefix 2001:db8:1200::/48. Determine how many /64 subnets can be created, explain the subnet structure, and give three valid /64 subnet prefixes.

18

Define Network Address Translation. Explain how basic NAT translates an outgoing and an incoming IPv4 packet.

19

Distinguish static NAT, dynamic NAT, and Port Address Translation. Explain how PAT allows multiple hosts to share one public IPv4 address.

20

Evaluate the advantages and limitations of NAT. Why can NAT create problems for end-to-end communication?