Packet Switching: Shared Resource Data Networks
Message Switching
Read aloud is unavailable in this browser.
The Original Store-and-Forward Network
Before packet switching revolutionized data communications, another store-and-forward technique dominated: message switching. This approach, rooted in telegraph and postal systems, treats each complete message as an indivisible unit—storing it entirely at each intermediate node before forwarding to the next hop.
While message switching has been largely superseded by packet switching for most applications, understanding this paradigm is essential for several reasons: it provides historical context for networking evolution, it remains in use for specific applications (email systems, certain military communications), and its limitations directly motivated the development of packet switching.
This page provides an exhaustive exploration of message switching—its operational principles, historical applications, advantages, critical limitations, and why packet switching ultimately prevailed.
By completing this page, you will: (1) Understand the fundamental operation of message switching, (2) Trace the historical evolution from telegraph systems to modern store-and-forward applications, (3) Analyze the advantages and critical limitations compared to packet switching, (4) Calculate message switching delays, and (5) Identify modern applications where message switching concepts persist.
Conceptual Foundation: What is Message Switching?
Message switching is a store-and-forward communication technique where a complete message is transmitted from source to destination through intermediate nodes, with each node receiving, storing, and forwarding the entire message before proceeding.
Core Characteristics
1. Complete Message as Unit of Transfer
Unlike packet switching, which fragments data into fixed-size or variable-size packets, message switching treats the entire message as an atomic unit. A message may be a single character or megabytes of data—it is forwarded as one piece.
Key Implication: A node cannot begin sending until the entire message has been received. For a 10 MB message on a 1 Mbps link, this means waiting 80 seconds before forwarding can begin—at each hop.
2. Store-and-Forward at Each Node
Each intermediate node (switch, relay station) must:
- Receive the complete message
- Store it in local memory or disk
- Examine the destination address
- Queue for transmission on the appropriate outgoing link
- Transmit the complete message to the next hop
3. No Fragmentation
Messages are not broken into smaller units for transmission. A 100 KB message occupies the link exclusively while being transmitted, blocking other messages.
4. Queuing of Entire Messages
When multiple messages compete for an outgoing link, entire messages queue—not packets. A long message ahead in the queue completely blocks shorter messages behind it until fully transmitted.
- •Fragmentation: Message switching transmits complete messages. Packet switching fragments messages into packets (often 1500 bytes or less).
- •Forwarding Delay: Message switching waits for complete message receipt. Packet switching can pipeline—start sending first packet while subsequent packets are still arriving.
- •Buffer Requirements: Message switching requires storage for arbitrarily large messages. Packet switching requires storage for fixed-size packets only.
- •Link Utilization: Message switching monopolizes links with large messages. Packet switching interleaves packets from different sources.
- •Latency: Message switching has high, variable latency. Packet switching has lower, more predictable latency.
Message switching was also known as 'store-and-forward switching' in early literature. The technique directly evolved from telegraph message relay systems where operators would receive a message at one station, write it down (store), and then re-transmit (forward) on the next leg of the journey. The conceptual parallel is exact.
Historical Context: From Telegraph to Computers
Message switching has a rich history that predates electronic computers. Understanding this evolution illuminates why packet switching emerged as a superior alternative.
Telegraph Era (1850s-1950s)
The telegraph network was the first global communication system, and it operated on message switching principles:
Manual Relay Operation:
- Sender brings message to telegraph office
- Operator transmits via Morse code to next station
- Receiving operator writes down the message (store)
- Message is queued and forwarded to next station
- Process repeats until destination reached
- Final station delivers message to recipient
Torn-Tape Relay: Automated systems used paper tape:
- Incoming Morse code punched onto paper tape
- Operator physically moved tape to outgoing transmitter ("tearing" tape)
- Outgoing transmitter sent message to next hop
This reduced transcription errors but was still message-based store-and-forward.
Telex Networks (1930s-1990s)
Telex (Teleprinter Exchange) formalized message switching for business communications:
Characteristics:
- Electromechanical teleprinters
- Automatic dialing and switching
- Store-and-forward for delayed delivery
- International interconnection (TWX, Telex)
Store-and-Forward Services:
- Messages could be sent to offline recipients
- Network stored message until recipient connected
- Priority queuing (urgent messages forwarded first)
Telex remained in use well into the 1990s, particularly for international business, freight, and legal communications requiring delivery confirmation.
Early Computer Networks (1960s-1970s)
As computers became networked, message switching was the natural starting point:
AUTODIN (Automatic Digital Network): U.S. military message switching network, operational from 1962:
- Messages up to 3000 characters
- Priority-based forwarding (Flash, Immediate, Priority, Routine)
- Store-and-forward across continental U.S.
- Influenced ARPANET design
SITA Network (Airline Industry): Société Internationale de Télécommunications Aéronautiques:
- Message switching for airline reservations, flight operations
- Messages formatted per IATA standards
- Store-and-forward with guaranteed delivery
- Evolved to packet switching in later versions
The Transition to Packet Switching
Why Message Switching Wasn't Enough:
By the 1960s, interactive computing emerged. Users at terminals expected rapid responses—they couldn't wait minutes while a large message from another user monopolized the network.
Paul Baran's Insight (1964): Baran's RAND Corporation work on survivable communications proposed breaking messages into "message blocks" (later called packets). This allowed:
- Faster response times
- Better link utilization
- Survival of partial network destruction (military context)
ARPANET (1969): Directly implemented packet switching, proving its superiority:
- 1024-bit packets
- Sub-second response times
- Multiple simultaneous conversations per link
ARPANET's success led to IP, the Internet, and the dominance of packet switching.
| Era | Technology | Message Unit | Delay Characteristic |
|---|---|---|---|
| 1850s-1920s | Manual Telegraph Relay | Complete message | Hours to days |
| 1930s-1960s | Automated Telex | Complete message | Minutes to hours |
| 1960s-1970s | Computer Message Switching | Complete message | Seconds to minutes |
| 1970s-Present | Packet Switching | Packets (~1500 bytes) | Milliseconds |
Message switching networks typically offered delivery guarantees—the network stored messages until confirmed received. The Internet's 'best effort' model (no delivery guarantee) was initially controversial. TCP at the transport layer, not IP, provides reliability—a direct application of the end-to-end principle that message switching networks didn't follow.
Operational Mechanics of Message Switching
Let us examine the detailed operational flow of message switching networks.
Message Structure
A message switching message typically contains:
| Component | Description |
|---|---|
| Header | Addressing information, priority, handling codes |
| Body | The actual message content (variable length) |
| Trailer | End-of-message indicator, error checking |
Unlike packets, there is no standard maximum size—messages can range from a few bytes to megabytes.
Switch Operation
┌──────────────────────────────────────────────────────────────────────┐
│ Message Switching Node │
├──────────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌────────────────┐ ┌───────────────┐ │
│ │ RECEIVE │─────→│ STORE │─────→│ PROCESS │ │
│ │ (complete │ │ (disk/memory) │ │ (parse addr) │ │
│ │ message) │ │ │ │ │ │
│ └──────────────┘ └────────────────┘ └───────┬───────┘ │
│ │ │
│ ▼ │
│ ┌──────────────┐ ┌────────────────┐ ┌───────────────┐ │
│ │ TRANSMIT │←─────│ QUEUE │←─────│ ROUTE │ │
│ │ (complete │ │ (by priority, │ │ (select next │ │
│ │ message) │ │ destination) │ │ hop) │ │
│ └──────────────┘ └────────────────┘ └───────────────┘ │
│ │
└──────────────────────────────────────────────────────────────────────┘
Detailed Flow:
-
Receive Phase
- Message arrives bit-by-bit on incoming link
- Node must wait for complete message (no partial forwarding)
- Message stored in buffer as it arrives
- Receipt confirmed when end-of-message marker detected
-
Store Phase
- Message written to stable storage (disk in traditional systems)
- This enables recovery after node failure
- Large messages may require significant storage
-
Process Phase
- Header parsed for destination, priority, handling codes
- Syntax and format validation
- Logging for audit and confirmation
-
Route Phase
- Destination address looked up in routing table
- Next hop or final destination identified
- For multi-destination messages, replicas created
-
Queue Phase
- Message added to appropriate output queue
- Priority handling: Flash > Immediate > Priority > Routine
- Queue may contain many complete messages
-
Transmit Phase
- When link available and message reaches queue head
- Entire message transmitted to next hop
- Link monopolized until complete message sent
- Confirmation received from next hop (in reliable systems)
- •FLASH — Highest priority. Pre-empts all other traffic. Used for immediate danger to life or national security. Target delivery: minutes.
- •IMMEDIATE — Very high priority. Deferred only for FLASH. Operational urgency requiring immediate action. Target delivery: 30 minutes.
- •PRIORITY — Expedited handling. Important operational messages. Target delivery: 3 hours.
- •ROUTINE — Standard handling. Administrative and non-urgent traffic. Target delivery: 24 hours or next business day.
- •DEFERRED — Lowest priority. Can be delayed indefinitely. Bulk transfers, reports. Delivered when capacity available.
Message switching nodes required substantial storage—capable of holding all in-transit messages. If a downstream link failed, messages accumulated. Military systems often had tape drives or disk storage measured in megabytes (enormous for the era). This storage requirement was a major operational concern and drove interest in packet switching's smaller, bounded buffers.
Delay Analysis: Message vs. Packet Switching
Understanding the delay characteristics of message switching versus packet switching illuminates why the latter prevailed for most applications.
Message Switching Delay Formula
For a message of size M bits traversing N hops with link bandwidth R:
$$D_{message} = N \times \frac{M}{R} + N \times d_{prop} + T_{queue}$$
Where:
- N × (M/R) = Total transmission delay (message transmitted N times)
- N × d_prop = Total propagation delay
- T_queue = Queuing delay at switches
Critical Observation: The entire message is transmitted at each hop sequentially. No pipelining is possible.
Packet Switching Delay Formula
For the same message fragmented into P packets of size L bits:
$$D_{packet} = (N + P - 1) \times \frac{L}{R} + N \times d_{prop} + T_{queue}$$
Key Insight: Pipelining! While the first packet is being forwarded from node 1 to node 2, the second packet can be transmitted from source to node 1. After the first packet traverses the network, subsequent packets follow one transmission delay apart.
Comparative Example
Scenario: 1 MB message, 3 hops, 1 Mbps links, negligible propagation delay
Message Switching: $$D_{message} = 3 \times \frac{8,000,000 \text{ bits}}{1,000,000 \text{ bps}} = 3 \times 8 \text{ s} = 24 \text{ seconds}$$
Packet Switching (1000-byte packets, P = 1000 packets): $$D_{packet} = (3 + 1000 - 1) \times \frac{8,000 \text{ bits}}{1,000,000 \text{ bps}} = 1002 \times 0.008 \text{ s} = 8.016 \text{ seconds}$$
Result: Packet switching is 3× faster for this scenario.
The advantage grows with more hops. For 10 hops:
- Message switching: 10 × 8 = 80 seconds
- Packet switching: (10 + 999) × 0.008 = 8.07 seconds
Nearly 10× faster!
| Hops | Message Switching | Packet Switching (1KB packets) | Speed Improvement |
|---|---|---|---|
| 1 | 8.0 s | 8.0 s | 0% (same) |
| 2 | 16.0 s | 8.008 s | ~2× |
| 3 | 24.0 s | 8.016 s | ~3× |
| 5 | 40.0 s | 8.032 s | ~5× |
| 10 | 80.0 s | 8.072 s | ~10× |
| 20 | 160.0 s | 8.152 s | ~20× |
Why Pipelining Works
Message Switching:
Time: 0──────8──────16──────24 seconds
├──M──→│ │ │
│ ├──M──→│ │
│ │ ├──M───→│
Hop 1 Hop 2 Hop 3 Arrived
Packet Switching:
Time: 0─────.008────.016────.024─── ... ───8.016 seconds
├P1─→├P1─→├P1─→│ │
│├P2─→├P2─→├P2─→│ │
││├P3─→├P3─→├P3─→│ │
││││ │
│ ... (1000 packets) │
││││├P1000─→├P1000─→├P1000─→│
Hop 1 Hop 2 Hop 3 Arrived
With packet switching, the network operates like a pipeline. Every link is productively transmitting simultaneously (after the first packet traverses each link). With message switching, only one link is active at a time.
Beyond Delay: Interactive Response Time
For interactive applications (terminal sessions, request-response), message switching is catastrophic:
- User types 100-character command
- Message switching: Wait for any large message ahead in queue
- One 1 MB message ahead = 8+ seconds wait per hop
- Total wait easily minutes for a simple command
Packet switching interleaves small packets with large transfers. The 100-character response might only wait behind a few packets, not entire messages.
When ARPANET demonstrated interactive remote login (Telnet) with sub-second response times, it validated packet switching's superiority for interactive computing. Message switching could never achieve this—large message transfers would inevitably block interactive sessions. This single demonstration changed networking history.
Advantages of Message Switching
Despite its limitations, message switching offers genuine advantages that explain its historical importance and residual applications.
- •Guaranteed Delivery: Store-and-forward with persistent storage ensures messages survive node failures. If a downstream link fails, messages wait in queue until connectivity resumes. The network guarantees eventual delivery.
- •Delivery Confirmation: Each hop can acknowledge receipt before the previous hop deletes its copy. End-to-end confirmation is straightforward. Legal and regulatory requirements often mandate delivery proof.
- •Priority Handling: Complete messages can be prioritized effectively. An urgent 100-byte message can pre-empt a routine 10 MB message completely—not just at the packet level.
- •Offline Destination Support: Messages can be addressed to recipients who are currently offline. The network stores the message until the recipient connects. This 'mailbox' functionality is inherent.
- •Multi-Destination Distribution: A message can specify multiple recipients. The network replicates and routes to each destination—a natural multicast/broadcast capability.
- •Audit Trail: Complete messages stored at each hop enable comprehensive logging. For legal, security, or compliance purposes, this is valuable.
- •Simple Endpoint Requirements: Endpoints need not fragment or reassemble—they send complete messages. This simplified terminal equipment in the pre-computer era.
Resilience to Intermittent Connectivity
Message switching excels when connectivity is unreliable or intermittent:
Store-and-Forward Buffering:
- If the path to the next hop is down, messages queue locally
- When connectivity resumes, queued messages forward automatically
- No end-to-end retransmission needed—only the failed hop retransmits
Delay-Tolerant Networking: Modern DTN (Delay-Tolerant Networking) protocols revive message switching concepts:
- Space communications (minutes to hours of round-trip delay)
- Disaster recovery networks
- Rural connectivity projects
- Sensor networks with intermittent connectivity
Email Systems: SMTP (Simple Mail Transfer Protocol) is fundamentally message switching:
- Complete email stored at each relay (MTA)
- Multiple relay attempts if destination unreachable
- Delivery confirmation (if requested)
- Offline recipient support (mailbox storage)
Email is message switching adapted for the Internet age.
For asynchronous, non-interactive communication where guaranteed delivery matters more than latency, message switching remains appropriate. Email, batch file transfers, military message traffic, and delay-tolerant networking all benefit from message switching's reliability-first design.
Limitations: Why Packet Switching Prevailed
The limitations of message switching are severe enough that it was abandoned for most applications once packet switching demonstrated its capabilities.
- •High Latency: Messages blocked until completely received. Multi-hop delivery multiplies delay. Interactive applications impossible.
- •Head-of-Line Blocking: Large messages ahead in queue completely block smaller messages. A 10 MB message blocks a 100-byte message for the entire transmission time.
- •Unpredictable Delay: Delay depends on other messages in the system. Users cannot predict when their message will be delivered. Makes real-time applications impossible.
- •Massive Buffer Requirements: Switches must buffer arbitrary-size messages. A million-byte message requires a million bytes of storage per switch. In early systems with expensive memory, this was prohibitive.
- •Link Utilization Inefficiency: During message reception, the outgoing link is idle. During transmission, the incoming link is idle. Only one direction active at a time.
- •No Pipelining: Cannot transmit portion while receiving remainder. Serializes operations that could parallelize.
- •Single Point of Failure per Message: If a switch fails while holding a message, that message may be lost (unless backed up). With packet switching, only in-transit packets are lost—others can be retransmitted.
| Criterion | Message Switching | Packet Switching |
|---|---|---|
| Interactive Response | Impossible | Excellent |
| Large File Transfer | Acceptable | Better (pipelining) |
| Buffer Requirements | Unbounded | Bounded (MTU) |
| Link Utilization | ~50% max | ~100% possible |
| Latency | High, variable | Low, predictable |
| Guaranteed Delivery | Inherent (storage) | Requires TCP/protocol |
| Offline Recipients | Inherent | Requires application support |
| Priority Handling | Coarse (message level) | Fine (packet level) |
The Interactive Computing Revolution
The rise of interactive computing in the 1960s was the death knell for message switching as a general-purpose network technology:
Time-Sharing Systems:
- Multiple users sharing a single computer
- Each user expects rapid response to commands
- Message switching cannot interleave users effectively
Remote Terminal Access:
- Users at distant terminals accessing mainframes
- Every keystroke should echo in milliseconds
- Message switching delay makes typing impossible
Transaction Processing:
- Airline reservations, banking, inventory
- Thousands of short request-response interactions
- Message switching would serialize all transactions
Packet switching solved all these problems by fragmenting data into small units that could be interleaved. ARPANET's demonstration of remote login proved the concept, and within a decade, packet switching dominated new network designs.
By the late 1970s, the choice was clear: packet switching for everything except specific non-interactive, high-reliability applications (military message systems, email). The Internet's success validated this conclusion. Message switching remains a historical curiosity and a niche solution—not a mainstream networking technology.
Modern Applications of Message Switching Concepts
While pure message switching is rare, its concepts persist in modern systems where its advantages outweigh its latency limitations.
Email Systems (SMTP)
Email is the most widespread message-switching-like system:
Message Switching Characteristics:
- Complete email stored at each Mail Transfer Agent (MTA)
- Forwarded hop-by-hop to destination
- Queue-based handling with retries on failure
- Offline recipient support (mail stored in mailbox)
- Delivery confirmation available (read receipts, DSN)
Differences from Pure Message Switching:
- Uses packet switching (TCP/IP) for underlying transport
- Parallelism possible (send to multiple recipients simultaneously)
- Modern systems prioritize but don't strictly guarantee order
Message Queuing Systems
Enterprise message queues (MQ) implement message switching patterns:
Examples:
- IBM MQ (formerly WebSphere MQ)
- RabbitMQ
- Apache Kafka
- Amazon SQS
Message Switching Characteristics:
- Messages stored durably in queues
- Consumers process messages asynchronously
- Guaranteed delivery with acknowledgments
- Dead-letter queues for undeliverable messages
Use Cases:
- Decoupling application components
- Reliable inter-service communication
- Event-driven architectures
- Asynchronous processing pipelines
Delay-Tolerant Networking (DTN)
DTN protocols explicitly embrace message switching for extreme environments:
Bundle Protocol (RFC 5050):
- Designed for interplanetary communication
- Hours or days of delay acceptable
- Intermittent connectivity expected
- Store-and-forward with persistent storage mandatory
Applications:
- Space missions (Mars rovers, deep space probes)
- Rural connectivity projects (data mules)
- Disaster recovery communications
- Wildlife tracking in remote areas
Military Message Systems
Military communications retain message switching concepts:
AUTODIN Successor Systems:
- Defense Message System (DMS)
- Message handling with classification levels
- Guaranteed delivery with audit trail
- Priority-based queuing (FLASH, IMMEDIATE, etc.)
Requirements Driving Message Switching:
- Absolute delivery guarantee (lives depend on it)
- Complete audit trail
- Classification handling (store in appropriately cleared systems)
- Interoperability with legacy systems
IoT and Sensor Networks
Some IoT scenarios benefit from message switching:
Intermittent Connectivity:
- Sensors in remote locations
- Battery-constrained devices sleeping most of the time
- Data collection via infrequent gateway connections
MQTT QoS Levels:
- QoS 1: At least once delivery (message stored until ACKed)
- QoS 2: Exactly once delivery (four-way handshake)
- Both implement store-and-forward semantics
The message switching paradigm—storing complete messages and forwarding with guaranteed delivery—remains valuable for asynchronous, reliability-first applications. Email, message queues, DTN, and military systems all implement its core concepts. Understanding message switching explains why these systems work the way they do.
KEEP LEARNING
Keep learning for free.
Read the complete lesson, save your notes and pick up where you left off with a free account. No card needed.