Switching in computer network is what help in deciding the best route for data transmission in a larger network if there are multiple paths.
This is to ensure that the efficient use of channels is achieved and to make communication and transmission reliable.
There are three types of switching techniques;
In circuit switching, a dedicated path or route is established between the sender and the receiver. In other words, before data can be transferred, a connection must be established.
During the communication or data transmission, the entire bandwidth of the circuit is reserved for the two devices (the sender and the receiver), even if they are not transmitting data.
This type of technique is used in telephone network whereby before you can communicate with your friend via the telephone, a connection is established between you and your friend as soon as you dial up to call your friend.
Advantages of circuit switching
Disadvantages of circuit switching
Unlike in circuit switching where a dedicated path is established, a message switching does not need a dedicated path.
Message switching, is a method of transmitting data that involves dividing the data into messages.
A message is a unit of data that contains the complete information that needs to be transmitted from the source to the destination. It is usually considered as a single entity, and it can be of any size depending on the amount of data being transmitted.
For example, an email message or a text message is a complete message that contains all the information that needs to be sent.
It uses a store and forward mechanism whereby a message is broken into pieces or chunks and are transferred to an intermediary node which helps to store the messages.
When the messages are completely stored, they are forwarded to their destination.
Advantage of message switching
Disadvantages of message switching
In packet switching, a message is broken into individual chunks called packets.
A packet is a small unit of data that is used to transmit a part of the message over the network. A message is divided into several packets, and each packet contains a part of the message along with some additional information such as the destination address, the sequence number, and error checking information.
Each packet is sent individually with a source and destination IP address, and also with a sequence number to help in the reordering or rearrangement of the packets received at the receiver end.
This sequence number also helps to figure out if there is a missing packet.
If there is a missing packet, it sends an acknowledgement seeking for the missing packet.
Packet switching is an efficient way to transmit data over a network, as packets can be sent over different routes, which means that if one route is congested, packets can be rerouted through a different path. This helps to ensure that the data arrives at its destination quickly and efficiently.
This type of technique is used on the Internet.
Read More: What Are the Similarities Between Packet Switching and Message Switching
Packet switching is further divided into two;
Datagram packet switching is also known as connectionless switching and does not have a fixed path.
The datagram (or message) contain destination information which allow the intermediary node to take routing decisions and to forward the message.
Virtual circuit packet switching is also known as connection-oriented switching. A preplanned route (or logical path) is established before messages can be sent.
The connection between the sender and the receiver are established with the use of call request and call accept packet.
Due to call request and call accept, which do result in an acknowledgement, virtual circuit packet switching is more reliable.
The message arrives in the order that it has been sent.
Advantage of packet switching
Disadvantages of packet switching