Message Switching

A store-and-forward technique where entire messages are transmitted from node to node.

Introduction to Message Switching

Message switching is a network switching technique in which data is routed in its entirety from a source node to a destination node, one hop at a time. The key principle is that the entire message is treated as a single, independent unit of data.

The best analogy for message switching is the traditional postal service. When you send a letter, you don't reserve the entire route from your house to the recipient's house. Instead, you drop it at the post office (the first node). The post office receives the whole letter, checks the address, and forwards it to the next sorting facility. This process repeats until the letter reaches its destination. The entire letter is stored at each stop before being sent to the next one.

The "Store-and-Forward" Mechanism

The core mechanism behind message switching is called . Each intermediate network node (like a router or switch) performs the following sequence of actions:

  1. Receive: The node receives the entire message from the preceding node.
  2. Store: The complete message is stored temporarily in a buffer (often on a hard disk or in RAM).
  3. Inspect & Route: The node inspects the message's header to determine its final destination. It then queries its routing table to find the next appropriate hop (node) on the path.
  4. Forward: The node waits for the outbound link to the next hop to become available. Once the link is free, it transmits the entire message to the next node.

This process is repeated at every node along the path until the message reaches its final destination.

Advantages and Disadvantages

Advantages

  • Efficient Link Utilization: Communication links are shared among many messages, not dedicated to a single connection. A link is only occupied for the time it takes to transmit the message, after which it becomes free for other messages. This is a significant improvement over .
  • Traffic Handling: The store-and-forward nature allows nodes to buffer messages, which helps in managing network congestion and handling bursts of traffic.
  • Message Prioritization: Since entire messages are stored, it's possible for intermediate nodes to manage them based on priority. An urgent message can be sent ahead of less critical ones.

Disadvantages

  • High Latency: The "store" operation at every single hop introduces significant delay. The entire message must be received before it can begin to be forwarded, making this technique unsuitable for real-time applications like voice or video calls.
  • Variable and Unpredictable Delay (): The time a message spends in the buffer at each node can vary greatly depending on network traffic. This results in inconsistent end-to-end delivery times.
  • Large Storage Requirements: Intermediate nodes must have sufficient memory or disk space to store the entire messages that pass through them. For large files (e.g., images or documents), this can be a significant hardware requirement.

Historical Context and Modern Relevance

Message switching was a crucial evolutionary step in telecommunications. Its principles were widely used in early telegraph networks, where operators would receive a full message, write it down, and then re-transmit it on the next link. It was also the basis for early computer-based email systems like UUCP (Unix-to-Unix Copy), which relayed mail between systems over dial-up links.

Today, pure message switching is rarely used for general data networking. It has been almost entirely superseded by . Packet switching breaks large messages into smaller packets, which are then routed individually. This dramatically reduces the "store" delay at each node and avoids the need for large buffers, making it suitable for a wide range of interactive and real-time services.

    Message Switching | Teleinf Edu