The Wayback Machine - https://web.archive.org/web/20241127052327/https://www.geeksforgeeks.org/packet-switching-and-delays-in-computer-network/
Open In App

Packet Switching and Delays in Computer Network

Last Updated : 03 Oct, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Packet Switching in computer networks is a method of transferring data to a network in the form of packets. In order to transfer the file fast and efficiently over the network and minimize the transmission latency, the data is broken into small pieces of variable length, called Packet. At the destination, all these small parts (packets) have to be reassembled, belonging to the same file. A packet is composed of a payload and various control information. No pre-setup or reservation of resources is needed. 

Packet Switching uses the Store and Forward technique while switching the packets; while forwarding the packet each hop first stores that packet then forwards. This technique is very beneficial because packets may get discarded at any hop for some reason. More than one path is possible between a pair of sources and destinations. Each packet contains the Source and destination address using which they independently travel through the network. In other words, packets belonging to the same file may or may not travel through the same path. If there is congestion at some path, packets are allowed to choose different paths possible over an existing network. 

Diagram of Packet Switching

In packet switching the data is divided into small packets which allow faster movement of data. Each packet contains two parts that is Header and Payload, the header on each packet conation information. Below is the diagram of how packet switching works.

Packet Switching

Packet Switching

We just read that in packet-switched networks, data is broken into packets before being sent over a network. Due to this approach allows for efficient use of network resources, but it can also introduce delays due to factors like propagation time and queueing delays. To excel in both theoretical exams and practical networking environments, a deeper understanding of packet switching mechanisms is crucial. Engaging with a structured study plan, such as the GATE CS and IT – 2025 course, can provide you with a comprehensive understanding of these concepts, ensuring you’re prepared for a wide range of questions in your exams.

Types of Delays in Packet Switching

  • Transmission Delay: Time required by the spent station to transmit data to the link.
  • Propagation Delay: Time of data propagation through the link.
  • Queueing Delay: Time spent by the packet at the destination’s queue.
  • Processing Delay: Processing time for data at the destination.

Advantages of Packet Switching over Circuit Switching

  • More efficient in terms of bandwidth, since the concept of reserving a circuit is not there.
  • Minimal transmission latency.
  • More reliable as a destination can detect the missing packet.
  • More fault tolerant because packets may follow a different path in case any link is down, Unlike Circuit Switching.
  • Cost-effective and comparatively cheaper to implement.

Disadvantage of Packet Switching over Circuit Switching

  • Packet Switching doesn’t give packets in order, whereas Circuit Switching provides ordered delivery of packets because all the packets follow the same path.
  • Since the packets are unordered, we need to provide sequence numbers for each packet.
  • Complexity is more at each node because of the facility to follow multiple paths.
  • Transmission delay is more because of rerouting.
  • Packet Switching is beneficial only for small messages, but for bursty data (large messages) Circuit Switching is better.

Types of Packet Switching

1. Connection-oriented Packet Switching (Virtual Circuit)

Before starting the transmission, it establishes a logical path or virtual connection using a signaling protocol, between sender and receiver and all packets belongs to this flow will follow this predefined route. Virtual Circuit ID is provided by switches/routers to uniquely identify this virtual connection. Data is divided into small units and all these small units are appended with help of sequence numbers. Packets arrive in order at the destination. Overall, three phases take place here- The setup, data transfer and tear-down phases. 

Virtual Circuit

Virtual Circuit

All address information is only transferred during the setup phase. Once the route to a destination is discovered, entry is added to the switching table of each intermediate node. During data transfer, packet header (local header) may contain information such as length, timestamp, sequence number, etc. 

Connection-oriented switching is very useful in switched WAN. Some popular protocols which use the Virtual Circuit Switching approach are X.25, Frame-Relay, ATM, and MPLS(Multi-Protocol Label Switching).

Phases in Virtual Circuit

2. Connectionless Packet Switching (Datagram)

Unlike Connection-oriented packet switching, In Connectionless Packet Switching each packet contains all necessary addressing information such as source address, destination address, port numbers, etc. Packets belonging to one flow may take different routes because routing decisions are made dynamically, so the packets that arrived at the destination might be out of order. It has no connection setup and teardown phase, like Virtual Circuits. 
Packet delivery is not guaranteed in connectionless packet switching, so reliable delivery must be provided by end systems using additional protocols. 

Connection-less-(1)

Datagram Packet Switching

A—R1—R2—BA is the sender (start)R1, R2 are two routers that store and forward dataB is receiver(destination)

To send a packet from A to B there are delays since this is a Store and Forward network. 

Difference Between Packet Switching and Circuit Switching

Packet Switching

Circuit Switching

In packet switching data is divided into packets, and packets is sent independently.

There is a dedicated path for each packet in circuit switching.

In Packet switching, data is processed at all intermediate nodes including the source system.

In-Circuit switching, data is processed at the source system only.

The delay between data units in packet switching is not uniform.

The delay between data units in circuit switching is uniform.

Packet switching is less reliable.

Circuit switching is more reliable.

Transmission of the data is done not only by the source but also by the intermediate routers.

Transmission of the data is done by the source.

Less wastage of resources.

Wastage of resources is more in Circuit Switching.

In Packet Switching there is no physical path between the source and the destination.

In-Circuit Switching there is a physical path between the source and the destination.

Call setup is not required in packet switching.

Call setup is required in circuit switching.

Packet switching requires complex protocols for delivery.

Circuit switching requires simple protocols for delivery.

Latency is high in Packet switching.

Latency is low in circuit switching.

Littel bit more overheating in packet switching.

Overheading is low in circuit switching.

Frequently Asked Question on Packet Switching – FAQs

What is Packet Switching?

Packet switching in computer networks is a method of transferring data to a network in the form of packets. In order to transfer the file fast and efficiently manner over the network and minimize the transmission latency, the data is broken into small pieces of variable length, called Packet

What is the role of routers in Packet Switching networks?

An apparatus that links two or more packet-switched networks or subnetworks is called a router. By forwarding data packets to their intended IP addresses, it manages traffic between these networks and let numerous devices to share an Internet connection.

How does Packet Switching handle congestion?

The control unit of the output port sends all datagrams (packets), acknowledgments included or not, straight to the outgoing connection if the congestion signal from the load measuring unit shows that the load of the switch is below a certain level.

Can packet-switched networks handle voice and video traffic?

Because packet switching can cause latency and packet loss, it is not appropriate for real-time communication, including audio and video.

How does error handling work in Packet Switching?

Several methods at different tiers of the network protocol stack can be used to detect problems at each node when employing packet switching. Typical methods include the following – Checksum: A checksum is a number that a mathematical function determines from the information in a packet.



Previous Article
Next Article

Similar Reads

Difference between Circuit Switching and Packet Switching
Circuit Switching is a type of switching, in which a connection is established between the source and destination This connection receives the complete bandwidth of the network until the data is transferred completely while Packet Switching in computer networks is a method of transferring data to a network in the form of packets. To transfer the fi
6 min read
Delays in Computer Network
The delays, here, means the time for which the processing of a particular packet takes place. We have the following types of delays in computer networks: 1. Transmission Delay: The time taken to transmit a packet from the host to the transmission medium is called Transmission delay.  For example, if bandwidth is 1 bps (every second 1 bit can be tra
3 min read
Difference Between Store‑and‑Forward Switching and Cut‑Through Switching
Switching is a technique to transmit data between networks using switches that connect multiple LANs. Switches forward data packets based on MAC addresses, efficiently using bandwidth and reducing collisions. The three main types are: Circuit Switching: Dedicated path for the entire connection, used in traditional telephony.Message Switching: Entir
5 min read
Difference between Circuit switching and Message switching
Data is transmitted through various networks and while doing that, there are several techniques that are used in switching data so that it gets to intended destination. Both methods circuit switching and message switching are distinct. In this article, both these switching techniques will be described, the characteristic features of switching will
5 min read
Difference between Datagram Switching and Virtual Circuit Switching
In networking, two important switching methods are Datagram Switching and Virtual Circuit Switching which are used for data transmission. These methods indicate the way data packets are transmitted in a network, and the path that packet has to follow. In this article, both techniques will be described in detail, as well as their merits compared to
7 min read
Difference between Message and Packet Switching
The Message and the Packet Switching are a two fundamental methods of the data transmission in a computer networks. A Message Switching transmits the entire message as a single unit through a intermediate nodes using store and forward technique where each node must receive the complete message before forwarding it. A Packet Switching divides a mess
5 min read
Pipelining in Packet Switching
Packet Switching: A mode of data transmission in which a message is broken into a number of parts which are sent independently, over whatever route is optimum for each packet, and reassembled at the destination. Packet Switching uses Store and Forward technique while switching the packets; while forwarding the packet each hop first store that packe
3 min read
Circuit Switching in Computer Network
Circuit Switching is a type of switching, in which a connection is established between the source and destination beforehand. This connection receives the complete bandwidth of the network until the data is transferred completely. However, circuit switching can be inefficient and costly due to its requirement for dedicated resources, making it less
9 min read
Types of EIGRP Packet in Computer Network
EIGRP (Enhanced Interior Gateway Routing Protocol) is a distance-vector routing protocol that is used to automate routing decisions and configuration on a computer network. It's a network protocol that allows routers to exchange data more quickly than prior protocols like the Interior Gateway Routing Protocol (IGRP) or the Border Gateway Protocol (
10 min read
How does the Packet Find the Shortest Path in a Computer Network?
Answer: Packets find the shortest path in a computer network using routing algorithms like OSPF or BGP, which calculate the most efficient route based on various metrics.Routing AlgorithmsVarious routing algorithms determine the shortest path for packets to travel from the source to the destination. Examples include Dijkstra's algorithm, Bellman-Fo
1 min read
Difference Between Virtual Private Network (VPN) and Multi-Protocol Label Switching (MPLS)
Virtual Private Network (VPN) and Multi-Protocol Label Switching (MPLS) are two networking technologies that allow for secure and efficient data transmissions. VPN is a secure connection which is established over a public network connection enabling users to remotely access private networks with encrypted information being sent through it. On the o
6 min read
IPv4 Datagram Fragmentation and Delays
Why IPv4 Datagram Fragmentation required? Different Networks may have different maximum transmission unit (MTU), for example due to differences in LAN technology. When one network wants to transmit datagrams to a network with a smaller MTU, the routers on path may fragment and reassemble datagrams. In IPv4, when a packet is larger than the Maximum
5 min read
Network Monitoring and Packet Capture Techniques
Computer networking is the interconnection of some devices which can communicate and exchange data among themselves. The communication can be either wired or wireless. In this article we will discuss how we can monitor and packet packets. What is Network Monitoring and Packet Capture?Network monitoring is the process of continuously monitoring a ne
6 min read
Packet Sniffing and Network Analysis Tools: Wireshark, tcpdump
Packet sniffing means intercepting data packets as they pass through a network, just like looking inside envelopes in the mail. Experts use tools like Wireshark and tcpdump to track, troubleshoot, or secure networks. The packet analyzer Wireshark, or just Shark for short, functions as a magnifying glass; it captures and organizes the packets so you
6 min read
Packet flow in the same Network
Prerequisite - How ARP works? To transfer a packet from source to destination, both the MAC address and IP address of the destination should be known. If the destination MAC address is not present then ARP will resolve this issue first then the packet will be delivered to a destination host. There are simple rules for a packet flow in a network: If
5 min read
Packet flow in different Network
Prerequisite - How ARP works, Packet flow in the same network To deliver the packet to the destination host, the source IP, destination IP, source MAC address and destination MAC address should be known. Some basic rules for the packet flow: If the destination host is present in the same network, then the packet is delivered directly to the destina
4 min read
Setting up a Basic Home Network using Packet Tracer
Packet Tracer is a network simulation tool that allows us to create network topologies by building virtual networking devices. Packet Tracer is highly encouraged for network enthusiasts as it allows them to have keen in-depth knowledge of networking. Let us see how to easily create a simple home network using Packet Tracer. Step-1: Open Packet Trac
1 min read
How to Connect Between Devices Via Network Wire on Cisco Packet Tracer(Virtual Program)?
In this article, we will look into how we can connect two computers/laptops using a virtual program called CISCO Packet Tracer. It can help us share files among the systems easily. A virtual program is used to set up the appropriate connection as it gives us a brief idea about the requirements for establishing a physical connection like hubs, switc
3 min read
How to Make Computer Lab in Packet Tracer?
Cisco Packet Tracer is a tool built by Cisco and it provides network simulation to practice simple and complex networks. The main purpose of the Cisco Packet Tracer is to help students learn the principles of networking and demonstrate the networking concepts. A DHCP Server is a network server that automatically assigns IP addresses, default gatewa
2 min read
Why Star network is More Efficient in Network Fault Tolerance in Place of Bus Network?
Answer: Star networks offer better fault tolerance than bus networks because a single point of failure in a star network (the central hub) affects only the connected device, while a fault in a bus network can disrupt communication for all devices on the bus.Advantages of Star Topology Over Bus Topology Individual Connection Points: In a star networ
2 min read
Basic Network Attacks in Computer Network
Many people rely on the Internet for many of their professional, social and personal activities. But there are also people who attempt to damage our Internet-connected computers, violate our privacy and render inoperable the Internet services. Given the frequency and variety of existing attacks as well as the threat of new and more destructive futu
7 min read
How to Find Network IP Address of Computer Using Computer Name?
Answer: By using the command "ping" followed by the computer name in the command prompt or terminal.To find the network IP address of a computer using its computer name: Open Command Prompt or Terminal Begin by opening the Command Prompt (Windows) or Terminal (macOS/Linux) on your computer. Use the Ping Command Type "ping" followed by the computer
1 min read
User mode and Kernel mode Switching
In it's life span a process executes in user mode and kernel mode. The User mode is normal mode where the process has limited access. While the Kernel mode is the privileged mode where the process has unrestricted access to system resources like hardware, memory, etc. A process can access I/O Hardware registers to program it, can execute OS kernel
4 min read
Difference between Swapping and Context Switching
Programs are sets of instructions designed to accomplish specific tasks. Similarly, a process refers to a runtime instance of a computer program. During the execution of a program, several threads may be running in parallel. Single-threaded processes refer to the thread itself as the process.1. Context switching :An operating system uses this techn
3 min read
How does Multiprotocol Label Switching (MPLS) Routing work ?
Multiprotocol Label Switching (MPLS) is a traffic routing mechanism it has significant advantages over the traditional IP based routing mechanism, MPLS is used in telecommunication networking where it shapes the data packet transmission among the nodes. In traditional IP based routing, IP datagram packet is analyzed by the router and according to t
5 min read
Multi Protocol Label Switching (MPLS)
Prerequisite - Working of MPLS Difference between VPN and MPLS Multi Protocol Label Switching (MPLS) is an IP packet routing technique that routes IP packet through paths via labels instead of looking at complex routing tables of routers. This feature helps in increasing the delivery rate of IP packets. MPLS uses layer 3 service i.e, Internet Proto
3 min read
What is Cut-through Switching?
Cut-through is a packet-switching method, where the switch forwards a packet as soon as the destination address is processed without waiting for the entire packet to be received. The next packet is sent as soon as the previous one has been verified as reaching the recipient without waiting for the complete transmission of the previous packet. Worki
2 min read
LAN Switching
A computer network is a collection of two or more computer systems that are linked together. A network connection can be established using either cable or wireless media. Hardware and software are used to connect computers and tools in any network. A computer network consists of various kinds of nodes. Servers, networking hardware, personal compute
3 min read
What is Switching?
In computer networking, Switching is the process of transferring data packets from one device to another in a network, or from one network to another, using specific devices called switches. A computer user experiences switching all the time for example, accessing the Internet from your computer device, whenever a user requests a webpage to open, t
6 min read
Wireshark - Packet Capturing and Analyzing
Prerequisite: Introduction to Wireshark This article will introduce the methods of packet capturing and analyzing. It will also introduce some advanced tools that are used for increasing efficiency during capture and analysis. Why sniff around? If you have prior experience with securing systems, you can not emphasize enough the importance of reconn
4 min read
Article Tags :
three90RightbarBannerImg