Module-2
1. Explain the difference between Switching and Bridging in computer networks.*
2. How does Classless Addressing (CIDR) improve IP address utilization?
Introduction
• CIDR (Classless Inter-Domain Routing) is an IP addressing scheme introduced to overcome
the limitations of classful addressing.
• Unlike Class A, B, and C addressing, CIDR allocates IP addresses based on the actual
requirement of a network.
• CIDR notation is written as IP Address/Prefix Length (e.g., [Link]/24).
How CIDR Improves IP Address Utilization
1. Eliminates Class-Based Addressing
• Removes fixed Class A, B, and C boundaries.
• Uses variable-length network prefixes.
2. Efficient Address Allocation
• Allocates IP addresses according to the organization's needs.
• Prevents unnecessary allocation of large address blocks.
3. Supports Variable Length Subnet Masking (VLSM)
• Creates subnets of different sizes.
• Uses IP addresses more efficiently.
4. Reduces IP Address Wastage
• Organizations receive only the required number of addresses.
• Conserves the limited IPv4 address space.
5. Enables Route Aggregation (Supernetting)
• Combines multiple networks into a single routing entry.
• Reduces routing table size.
6. Improves Routing Efficiency
• Smaller routing tables.
• Faster route lookup and packet forwarding.
7. Enhances Network Scalability
• Supports growing networks without wasting addresses.
• Simplifies network management.
Example
Suppose an organization needs 500 IP addresses.
Classful Addressing
• Requires a Class B network.
• Total addresses = 65,536
• Most addresses remain unused.
CIDR Addressing
• Allocate [Link]/23
• Total addresses = 512
• Only 12 addresses remain unused.
• Efficient utilization of IP addresses.
Advantages of CIDR
• Efficient use of IPv4 addresses.
• Reduces address wastage.
• Supports VLSM.
• Enables route aggregation.
• Smaller routing tables.
• Faster routing.
• Delays IPv4 address exhaustion.
• Improves scalability.
Disadvantages
• More complex address planning.
• Requires CIDR-compatible routers.
• Network administrators need knowledge of subnetting.
3. Describe the DHCP process for dynamically assigning IP addresses.
Introduction
• DHCP (Dynamic Host Configuration Protocol) is an application-layer protocol used to
automatically assign IP addresses and other network configuration parameters to devices.
• It eliminates manual IP configuration and simplifies network management.
• DHCP uses the client-server model.
• Transport Protocol: UDP
o Server Port: 67
o Client Port: 68
DHCP Process (DORA Process)
The DHCP address assignment process consists of four steps, commonly called DORA.
1. DHCP Discover
• When a client connects to the network, it does not have an IP address.
• The client broadcasts a DHCP Discover message.
• This message searches for available DHCP servers.
Purpose: To locate a DHCP server.
2. DHCP Offer
• The DHCP server receives the Discover message.
• It replies with a DHCP Offer message.
• The offer contains:
o Available IP address
o Subnet mask
o Default gateway
o DNS server
o Lease time
Purpose: To offer an available IP address.
3. DHCP Request
• The client selects one DHCP server.
• It broadcasts a DHCP Request message.
• This informs all DHCP servers which offer has been accepted.
Purpose: To request the offered IP address.
4. DHCP Acknowledgment (ACK)
• The selected DHCP server sends a DHCP ACK message.
• The client receives the assigned IP address and configuration details.
• The client can now communicate on the network.
Purpose: To confirm IP address allocation.
4. Explain the concept of encapsulation in Virtual Network Tunnels.
Introduction
• A Virtual Network Tunnel is a logical communication path established over a public network
(such as the Internet) to securely transfer data between two networks or devices.
• Encapsulation is the process of enclosing an original data packet inside another packet by
adding a new protocol header.
• It allows private network traffic to travel securely through a public network.
Encapsulation
Definition
• Encapsulation is the process of wrapping an original IP packet inside another IP packet by
adding a new header.
• The original packet becomes the payload of the new packet.
• At the destination, the outer header is removed (decapsulation) and the original packet is
delivered.
Working of Encapsulation in Virtual Network Tunnels
Step 1: Data Creation
• The sender creates the original IP packet containing user data.
Step 2: Tunnel Encapsulation
• The tunnel protocol (GRE, IPsec, L2TP, PPTP, etc.) adds a new tunnel header and an outer IP
header.
• The original IP packet is completely enclosed inside the new packet.
Step 3: Transmission
• The encapsulated packet travels through the Internet.
• Intermediate routers read only the outer IP header and forward the packet.
• The original packet remains protected inside the tunnel.
Step 4: Decapsulation
• At the tunnel endpoint, the outer IP header and tunnel header are removed.
• The original IP packet is recovered.
• The packet is delivered to the destination host.
Tunnel Protocols Used
• GRE (Generic Routing Encapsulation)
• IPsec (Internet Protocol Security)
• L2TP (Layer 2 Tunneling Protocol)
• PPTP (Point-to-Point Tunneling Protocol)
• SSL/TLS VPN
Advantages of Encapsulation
• Provides secure communication over public networks.
• Protects data from unauthorized access.
• Supports Virtual Private Networks (VPNs).
• Allows communication between geographically separated private networks.
• Hides internal network addresses from the public network.
• Enables different network protocols to travel across IP networks.
• Improves flexibility and scalability.
5. Compare Datagram Networks and Virtual Circuit Networks
6. Explain the Spanning Tree Protocol (STP) used in bridges
Definition
• Spanning Tree Protocol (STP) is a Layer 2 protocol used in bridges and switches.
• It prevents network loops by creating a loop-free path.
• Standard: IEEE 802.1D.
Need for STP
Without STP, loops can cause:
• Broadcast storms
• Duplicate frames
• Network congestion
• MAC address table instability
Working of STP
1. Elects a Root Bridge.
2. Selects the best path to the Root Bridge.
3. Blocks redundant links.
4. Keeps only one active path for communication.
Advantages
• Prevents network loops.
• Avoids broadcast storms.
• Improves network performance.
• Supports backup links.
• Increases network reliability.
Disadvantages
• Slow convergence in traditional STP.
• Some links remain unused.