L o a d i n g
Blog Header Image

Switching Techniques

Switching is the process of transferring data packets from one device to another in a network, or from one network to another, using a dedicated device called a SWITCH.

Users experience switching constantly; for example, when you access a webpage, your request is processed through the switching of data packets across various nodes to reach the host server.

Network Switching

A switch is a dedicated piece of hardware that facilitates the process of handling incoming data packets and transferring them to their specific destination. Operating at the Data Link Layer (Layer 2) of the OSI Model, a switch decides the appropriate port for a packet based on its destination MAC (Media Access Control) address.

The switch maintains MAC Tables (also known as Forwarding Tables) to effectively map which device is connected to which physical port.

The Switching Process (5 Steps)

  • Frame Reception: The switch receives a data frame from a computer connected to one of its ports.
  • MAC Address Extraction: The switch reads the header of the data frame to identify the destination MAC address.
  • Table Lookup: The switch performs a lookup in its switching table to find the port associated with that MAC address.
  • Forwarding Decision: If a match is found, the frame is sent to that port. If not, the switch follows a flooding process, sending the frame to all ports except the source to discover the new address.
  • Frame Transition: Once the destination is confirmed, the frame is delivered to the target computer or network.

Types of Switching

1. Message Switching

An older, largely obsolete technique where the entire data block or message is forwarded across the network as a single unit. This is considered highly ineffective for modern high-speed traffic.

2. Circuit Switching

In this type, a dedicated physical connection is established between the source and destination before data transfer begins. The connection receives the full, guaranteed bandwidth (common in traditional telephony).

3. Packet Switching

Data is broken into smaller components called packets. These are transferred independently based on the best available resources at that moment. This is the foundation of the modern Internet.

  • Datagram Packet Switching: Each packet is treated as an individual entity and processed separately. No pre-established connection is required, offering flexibility but occasionally leading to out-of-order delivery.
  • Virtual Circuit Packet Switching: A logical connection (the "virtual circuit") is created between source and destination before transmission, ensuring packets follow the same path.