1. Define IPv4 and explain its addressing format.
IPv4, or Internet Protocol version 4, is the fourth version of the Internet Protocol that provides a
connectionless, best-effort service for transmitting data across networks. It is responsible for logical
addressing and routing of packets between devices. IPv4 uses a 32-bit addressing scheme, which
allows for approximately 4.3 billion unique addresses. Each IPv4 address is divided into four octets
of 8 bits each and is written in dotted decimal notation, such as [Link]. The structure of an
IPv4 address consists of two main parts: the network ID, which identifies the specific network, and
the host ID, which identifies a device within that network. This hierarchical addressing ensures
efficient packet routing across networks.
2. Compare IPv4 and IPv6 in terms of structure and features.
IPv4 is a 32-bit protocol that provides around 4.3 billion addresses, represented in dotted decimal
form like [Link]. IPv6, on the other hand, is a 128-bit protocol offering an almost unlimited
address space represented in hexadecimal format such as [Link]. IPv4 headers vary from 20
to 60 bytes in size, while IPv6 uses a simplified fixed 40-byte header for faster processing. IPv4
requires techniques like NAT to cope with address shortages, whereas IPv6 eliminates the need for
NAT. IPv6 integrates IPSec for security by default, while IPv4 only supports it optionally.
Furthermore, IPv6 supports auto-configuration and better mobility, whereas IPv4 relies on manual
configuration or DHCP.
3. Explain the importance of logical addressing in the network layer.
Logical addressing plays a crucial role in the network layer because it ensures unique identification
of devices across interconnected networks. Unlike MAC addresses that are tied to hardware, logical
addresses such as IP addresses are hierarchical and consist of network and host portions. This
hierarchy allows routers to determine the best path to deliver packets. Logical addressing enables
communication between devices in different networks, ensuring scalability and global connectivity.
Without logical addressing, devices could only communicate within a local segment, restricting the
growth and functionality of the Internet.
4. Differentiate between classful and classless addressing.
Classful addressing divides IP addresses into fixed classes such as A, B, C, D, and E, each with
predefined network and host portions. This rigid system often led to inefficient utilization and
wastage of IP addresses. In contrast, classless addressing, introduced as CIDR (Classless
Inter-Domain Routing), allows division of the IP address space into variable-length prefixes using
notation such as /24 or /28. This provides greater flexibility, efficient allocation of addresses, and
reduces wastage. Classless addressing is widely used in modern networking as it adapts better to
the needs of organizations of different sizes.
5. Write short notes on IPv6 advantages over IPv4.
IPv6 offers several advantages over IPv4. Its 128-bit address space provides an enormous number
of unique addresses, eliminating the shortage faced by IPv4. It simplifies header processing with a
fixed 40-byte structure, leading to faster routing. IPv6 integrates IPSec, ensuring confidentiality and
authentication by default, whereas IPv4 only supports it optionally. It supports auto-configuration,
which reduces administrative overhead, and eliminates the need for NAT, thereby restoring
end-to-end connectivity. IPv6 also enhances support for mobility, real-time traffic through QoS, and
uses multicast instead of broadcast, improving efficiency.
6. Explain the working of ARP (Address Resolution Protocol) with an example.
ARP, or Address Resolution Protocol, is used to map an IP address to a MAC address in a local
network. When a device wants to communicate with another using its IP address, it first checks its
ARP cache. If the mapping is not found, the device broadcasts an ARP request asking who owns
the given IP address. The device with the matching IP responds with its MAC address, which is
then stored in the ARP cache for future use. For example, if host A wants to send data to
[Link], it sends an ARP request. Host B, owning this IP, replies with its MAC address,
allowing communication to proceed.
7. Differentiate between ARP and RARP.
ARP and RARP are related but serve opposite purposes. ARP is used to map an IP address to a
MAC address, helping a sender locate the physical address of a recipient. RARP, or Reverse ARP,
is used to map a MAC address to an IP address, which is useful for diskless systems that know only
their hardware address and need to discover their IP during boot-up. While ARP assists in regular
communication within a LAN, RARP was used mainly for system initialization and has largely been
replaced by BOOTP and DHCP.
8. Write a short note on RARP.
Reverse Address Resolution Protocol (RARP) is a protocol that allows a device to determine its IP
address when only its MAC address is known. This was especially useful for diskless workstations
that did not have permanent storage to keep IP configuration. At startup, the device would
broadcast a RARP request with its MAC address. A RARP server would respond with the
corresponding IP address. However, RARP had limitations, as it only provided IP addresses and
required a dedicated RARP server. Over time, it was replaced by more advanced protocols such as
BOOTP and DHCP.
9. Explain the role of DHCP in IP addressing.
The Dynamic Host Configuration Protocol (DHCP) automates the process of assigning IP
addresses and other configuration parameters to devices on a network. Instead of manually
configuring each device, DHCP allows clients to request configuration from a DHCP server. The
process involves four steps, commonly called DORA: Discover, Offer, Request, and Acknowledge.
The server assigns an IP address, subnet mask, gateway, and DNS information to the client. DHCP
reduces administrative overhead, prevents address conflicts, and is particularly beneficial for mobile
and large-scale networks where devices frequently join and leave.
10. Explain the functions of ICMP and list different types of ICMP messages.
ICMP, or Internet Control Message Protocol, is used for error reporting and diagnostics in IP
networks. It is carried within IP packets and provides feedback about communication issues. ICMP
functions include reporting errors such as unreachable destinations, packet time exceeded, and
redirections to improve routing. It is also used for diagnostic tools such as ping and traceroute.
ICMP messages can be divided into two types: error reporting messages (e.g., destination
unreachable, time exceeded, redirect) and query messages (e.g., echo request and reply,
timestamp requests).
11. What is IGMP? Explain its use in multicasting.
IGMP, or Internet Group Management Protocol, is used by hosts and routers to manage multicast
group memberships. It allows a host to inform routers when it wants to join or leave a multicast
group. Routers use IGMP to maintain group membership lists and ensure that multicast traffic is
delivered only to networks where interested receivers exist. IGMP is essential in applications like
video streaming and online conferencing, where one sender needs to distribute data to multiple
receivers efficiently without broadcasting to every device.
12. Explain the Shortest Path Routing algorithm with an example.
The Shortest Path Routing algorithm determines the minimum cost path between two nodes in a
network. A widely used algorithm for this purpose is Dijkstra's algorithm. It works by assigning
tentative distances to nodes and progressively finding the shortest known distance from the source
to each node until all paths are determined. For example, if node A is connected to B with a cost of
2, and B is connected to C with a cost of 3, while A is directly connected to C with a cost of 6, the
shortest path from A to C is through B, with a total cost of 5.
13. What is Flooding in routing? State its advantages and disadvantages.
Flooding is a routing technique where every incoming packet is forwarded through all outgoing links
except the one it arrived from. This guarantees that the packet will reach its destination if any path
exists. The main advantages of flooding are its simplicity and reliability, as it does not require
routing tables or complex algorithms. However, its disadvantages include excessive redundancy,
network congestion, and wasted bandwidth because multiple copies of the same packet may
circulate in the network. Flooding is generally used only in special cases, such as in link state
routing updates.
14. Explain Hierarchical Routing with a neat diagram.
Hierarchical routing divides the network into multiple regions or areas to improve scalability.
Routers within a region maintain detailed routing information about devices inside the region but
only keep summarized information about other regions. This reduces the size of routing tables and
improves efficiency. For example, consider two regions: Region A and Region B. Routers inside
Region A know all paths within their region, while border routers exchange only summary
information about routes to Region B. This layered approach makes large networks such as the
Internet manageable.
15. Differentiate between Broadcast and Multicast Routing.
Broadcast routing is a communication method where a message is delivered to all devices in a
network, regardless of whether they need the information. An example of this is an ARP request,
where all devices receive the broadcast, but only the intended recipient responds. Multicast routing,
on the other hand, delivers messages only to a specific group of devices that have expressed
interest in receiving the data. This is more efficient than broadcasting and is commonly used in
applications like video conferencing or live streaming, where only group members receive the
stream.
16. Explain Distance Vector Routing with an example.
Distance Vector Routing is a dynamic routing algorithm in which each router maintains a table of
the minimum distance to every destination. Routers exchange these tables periodically with their
neighbors and update their own tables based on the received information. The Bellman-Ford
algorithm is used to compute shortest paths. For example, if router A knows that it can reach B in 2
hops and B can reach C in 3 hops, then A will learn through B that C can be reached in 5 hops.
Although simple, distance vector routing may suffer from slow convergence and routing loops.
17. Differentiate between Distance Vector and Link State Routing.
Distance Vector and Link State are two major routing approaches. In Distance Vector routing,
routers only know the distance and next hop to each destination, exchanging information
periodically with neighbors. This approach is simple but can be slow to converge and prone to
count-to-infinity problems. Link State routing, however, provides each router with a complete view
of the network topology. Routers exchange link state advertisements and compute routes using
Dijkstra’s algorithm. While Link State routing is more complex and resource-intensive, it converges
faster and is more reliable in large networks. RIP is an example of Distance Vector, while OSPF is
an example of Link State.
18. What is Internetworking? Explain its significance.
Internetworking is the process of connecting multiple separate networks into a larger, unified
system, most commonly known as the Internet. It allows devices from different types of networks to
communicate with each other seamlessly. The significance of internetworking lies in its ability to
provide global communication, resource sharing, and interoperability across heterogeneous
systems. It supports scalability, enabling billions of devices worldwide to exchange information and
services. Without internetworking, modern applications such as email, cloud computing, and online
collaboration would not be possible.