Switching Techniques_ Circuit Switching, Packet Switching, and Message Switching Q_A U-3
Switching Techniques_ Circuit Switching, Packet Switching, and Message Switching Q_A U-3
Switching
Answer:
Circuit switching is a communication technique in which a dedicated communication path is
established between two nodes or devices for the duration of the communication session.
Process:
Applications:
● Telephone networks.
● Real-time communication systems (e.g., video conferencing).
Circuit switching ensures consistent quality but is inefficient as the reserved path remains
unused during silence periods.
Answer:
Advantages:
1. Dedicated connection ensures consistent quality and no delay once the connection is
established.
2. Predictable performance suitable for real-time applications.
Disadvantages:
1. Inefficient resource usage since the path remains reserved even during idle times.
2. Long setup time due to the requirement of establishing a connection before
communication.
Packet switching is used in the internet and other data communication networks.
Answer:
Process:
Example:
When sending an email, the message is split into packets. Each packet finds its way through the
network and is reassembled at the recipient’s email server.
Answer:
Applications:
Packet switching is the backbone of internet communication protocols like TCP/IP.
How It Works:
1. A message is created at the source and sent to the first intermediate node.
2. The intermediate node stores the message until the next node is available.
3. The process continues until the message reaches the destination.
Answer:
Answer:
An IP address is a unique identifier for a device on a network. IPv4 uses 32 bits, represented in
dotted-decimal notation (e.g., 192.168.1.1).
Structure:
Example:
● 192.168.0.1 represents a device in a private network.
Answer:
IPv4 addresses are divided into five classes:
Answer:
IPv6 uses 128-bit addresses, written in hexadecimal notation (e.g.,
2001:0db8:85a3::8a2e:0370:7334).
Advantages of IPv6:
Answer:
Circuit switching works by creating a dedicated physical communication path between two
endpoints. It is ideal for real-time, uninterrupted communication.
Answer:
Reasons for Inefficiency:
Modern networks prefer packet switching for better utilization of bandwidth and dynamic routing.
Answer:
Challenges:
Despite these challenges, packet switching remains the backbone of internet communication.
14. Explain the differences between Datagram Packet Switching and Virtual
Circuit Switching.
Answer:
Virtual Circuit Switching combines the advantages of circuit and packet switching by predefining
the path while maintaining packet switching flexibility.
Answer:
Example:
Purpose:
Example:
A Class C network 192.168.1.0/24 can be divided into 4 subnets:
Answer:
IPv6 overcomes IPv4's limitations, especially with the growing number of devices.
Answer:
ARP (Address Resolution Protocol) maps an IP address to a MAC address in a local network.
Purpose:
When a device knows an IP address but needs the MAC address for communication within a
LAN, ARP resolves this.
Example:
Answer:
Answer:
DHCP (Dynamic Host Configuration Protocol) automates IP address assignment in networks.
Steps:
Answer:
Intradomain routing refers to routing within a single autonomous system (AS). It focuses on
efficiency and simplicity.
Examples:
Answer:
Interdomain routing manages routing between multiple autonomous systems.
Implementation:
● BGP (Border Gateway Protocol): The primary protocol for interdomain routing. It
ensures policies are maintained between ISPs while routing packets.
● Example: Google and an ISP exchanging routing information via BGP.
Answer:
24. Explain Message Switching with an example. How does it differ from
Packet Switching?
Answer:
Message switching is a technique where the entire message is stored at each intermediate
node before being forwarded to the next node.
Example:
● A 10MB email sent from a user in New York to a recipient in London is stored fully at
each intermediate router.
● Each router processes and forwards the entire email sequentially.
● In packet switching, the email is divided into smaller packets, which are transmitted
independently.
● Packet switching is faster and more efficient, as no complete message is stored at
routers.
25. What are the advantages of Packet Switching over Circuit Switching?
Answer:
Advantages of Packet Switching:
26. What are the limitations of Message Switching, and why is it rarely used
today?
Answer:
Limitations:
1. High Latency: Entire messages must be stored before forwarding, causing delays.
2. Storage Requirements: Intermediate nodes need significant storage for large
messages.
3. No Real-Time Communication: Unsuitable for applications like video calls.
Example: While suitable for applications like emails in the past, message switching has been
replaced by more efficient techniques like packet switching.
Answer:
Subnetting divides a network into smaller subnets, isolating groups of devices.
Security Benefits:
Example:
A company can create separate subnets for HR (192.168.1.0/24) and IT
(192.168.2.0/24), ensuring HR systems are inaccessible to unauthorized users.
Answer:
Subnet masks determine which part of an IP address represents the network and which part
represents the host.
Steps to Calculate:
Example:
Answer:
IPv6 was introduced to resolve IPv4's limitations, especially the limited address space.
Advantages of IPv6:
Answer:
Dynamic Host Configuration Protocol (DHCP) automates IP address assignment.
Process:
Answer:
Example:
● ARP: Used when device A (192.168.1.5) needs device B’s MAC address.
● BOOTP: Used to assign an IP to diskless devices during boot.
Answer:
1. Transition from IPv4: Devices and networks must support dual-stack configurations.
2. Hardware Limitations: Older devices may not support IPv6.
3. Training Requirements: Network administrators need expertise in IPv6.
4. Compatibility Issues: Applications relying on IPv4 need updates.
Example: Organizations implementing IPv6 may face compatibility issues with legacy systems.
Answer:
Example:
● If Router A (hop count = 0) sends data to Router B (hop count = 1) and then to Router C
(hop count = 2), the table reflects this hierarchy.
● Protocol: RIP is an example of distance-vector routing.
Answer:
OSPF (Open Shortest Path First) is a link-state protocol that uses a cost metric to find the
shortest path.
Key Features:
Example: OSPF dynamically recalculates paths if a router goes offline, ensuring minimal
disruption.
Answer:
Circuit switching, despite being reliable, has several disadvantages:
Answer:
Example: IPv4 is commonly used for home networks, while IPv6 is essential for IoT devices.
Answer:
DHCP in IPv6 (DHCPv6) assigns IP addresses and other configuration parameters to devices.
Roles in IPv6:
1. Stateful Mode: Assigns IP addresses and manages leases like IPv4 DHCP.
2. Stateless Mode: Provides additional parameters (e.g., DNS server) without assigning IP
addresses.
Example:
A device joining an IPv6-enabled Wi-Fi network can use DHCPv6 to get a DNS server address
while autoconfiguring its IP using SLAAC.
39. What are the key fields in an IPv4 header? Explain their purpose.
Answer:
An IPv4 header contains:
Example: A packet with 192.168.1.1 as source and 8.8.8.8 as destination contains these
fields in its IPv4 header.
Answer:
The Address Resolution Protocol (ARP) resolves IP addresses into MAC addresses, enabling
devices to communicate within a LAN.
Process:
Example:
When a computer at 192.168.1.5 pings 192.168.1.10, ARP ensures the IP address is
resolved to the corresponding MAC for packet delivery.
Answer:
CIDR allows flexible IP address allocation by using a subnet mask to specify network size.
Example:
The address 192.168.1.0/24 has 256 IPs, but using CIDR, it can be divided into smaller
subnets:
Answer:
Interdomain routing protocols manage traffic between different autonomous systems (AS).
Features:
Example:
Google's AS uses BGP to exchange routing information with ISPs.
43. How does RIP calculate routes, and what are its limitations?
Answer:
Route Calculation:
RIP (Routing Information Protocol) calculates routes based on hop count, selecting the path
with the least number of hops.
Limitations:
Example:
RIP works well in small networks but struggles in large-scale enterprise environments.
Answer:
Example:
45. How does a router handle packets during link failure in OSPF?
Answer:
When a link fails, OSPF:
Example: If the primary link from Router A to Router B fails, OSPF reroutes traffic via an
alternate path without manual intervention.