Professional Documents
Culture Documents
ch70 Message Swiching PDF
ch70 Message Swiching PDF
Introduction
Basic Ideas in Message Switching
Message Switching Characteristics
Message-Switched Networks
Network Elements
Store-and-Forward Switches
Message-based Protocols and the OSI Model
Message-Switched Networks and
their Applications
Store-and-Forward Networks
1
1
2
2
2
3
4
5
6
INTRODUCTION
A communication network consists of a collection of
devices (or nodes) that wish to communicate and interconnect together. The primary objective in any communication network is simply moving information from one
source to one or more destination nodes. Based on the
techniques used to transfer data, communication networks
can be categorized into broadcast and switched networks. In broadcast networks, data transmitted by one node
is received by many, sometimes all, of the other nodes.
In switched-communication networks, however, the data
transferred from source to destination is routed through
the switch nodes. The way in which the nodes switch data
from one link to another as it is transmitted from source
to destination node is referred to as a switching technique.
Three common switching techniques are circuit switching, packet switching, and message switching.
In circuit switching, the end-users are interconnected
using dedicated paths. The most common example of a
circuit-switched communications network is the plain
old telephone service (POTS) network. One major issue
with circuit switching is that it can be rather inefficient,
particularly in data communications (Stallings, 2004).
This is because in a circuit-switched network the channel
capacity is dedicated for the entire duration of a connection, even if no information is being transferred. Furthermore, in a circuit-switched network, the actual time to
setup and tear down the path may in fact be longer than
the data transfer time between end-users. Refer to Chapter 73 for a complete discussion on circuit switching.
In packet switching, data is divided into smaller units,
called packets, and then transmitted through the network.
The minimum length of the packet is determined by the
network and varies from network to network. Packets are
transported over the network between nodes. Each intermediate node queues the packet for a brief time while it
determines the route the packet should take to reach the
next node. For this reason, a packet-switched network
is sometimes called hold-and-forward network (Tomasi,
2004). Please refer to Chapter 72 for a complete discussion on packet-switched networks.
Message-Switched Protocols
Performance of Message-Switched Networks
Delay Performance
Node Delay
Comparison of Message, Packet, and
Circuit Switching
Conclusion
Glossary
References
Further Reading
7
9
9
9
11
12
12
12
13
Prior to advances in packet switching, message switching was introduced as an effective alternative to circuit
switching. In message switching, end-users communicate by sending each other a message, which contains the
entire data being delivered from the source to destination node. As a message is routed from its source to its
destination, each intermediate switch within the network stores the entire message, providing a very reliable
service. In fact, when congestion occurs or all network
resources are occupied, rather than discarding the traffic,
the message-switched network will store and delay the
traffic until sufficient resources are available for successful delivery of the message (Davis, 1973). The message
storing capability can also lead to reducing the cost of
transmission; for example, messages can be delivered at
night when transmission costs are typically lower.
Message switching techniques were originally used in
data communications. Early examples of message switching applications are paper tape relay systems and telex
networks. Electronic mail (e-mail) and voice mail are also
examples of message switching systems. Today, message
switching is used in many networks, including ad hoc
sensor networks, satellite communications networks, and
military networks.
bid44608_ch70.indd 1
5/19/07 8:23:48 PM
MESSAGE SWITCHING
MESSAGE-SWITCHED NETWORKS
In this section we first describe different elements of a
message-switched network and examine their basic functionalities. Then we focus on store-and-forward switch
node architecture and explain its building blocks.
Network Elements
Figure 2 shows a generic message-switched network
allowing message transport from one end-user to another.
This network consists of transmission links (channels),
store-and-forward switch nodes, and end stations (Tomasi,
2004). The transmission links differ depending on the
transmission technology and the physical transmission
media over which the communications take place. The
store-and-forward switch nodes provide end stations
with access to transmission links and other switch nodes.
They allow data storage and transport of messages from
one node to another until they reach their destination
bid44608_ch70.indd 2
User Message
(M bytes)
5/19/07 8:23:49 PM
MESSAGE-SWITCHED NETWORKS
Terminal (1)
Terminal (2)
SW A
SW B
Message
Store-&Forward
Switch
SW C
SW D
Email Server
Mainframe
Store-and-Forward Switches
In general, a switch is a connectivity device that makes
forwarding decisions. A store-and-forward switch performs forwarding functionalities similar to a switch in a
packet-switched network. However, a store-and-forward
switch forwards a message only if sufficient resources
are available and the next hop is accepting new data.
Hence, the switching strategy in store-and-forward
switches is different from the common switching strategy
used in packet-switched networks in which the incoming data is forwarded as soon as its destination address is
determined.
Figure 3 shows the basic functional blocks of a generic
store-and-forward switch node (Shafritz, 1964). In the
following paragraphs we briefly outline the basic functionalities of each block.
The message received by a store-and-forward switch
is first decoded and queued. When the input processing
controller becomes available, it receives the message and
analyzes its header for its destination, associated id, and
priority level.
Message in
Line
Decoder
RX
Statistics
Message out
bid44608_ch70.indd 3
Line
Coder
TX
Output Buffer
Queue
Input
Processing
Controller
Primary/
Secondary
Lookup Table
Storage
Devices
Output
Processing
Controller
5/19/07 8:23:49 PM
MESSAGE SWITCHING
bid44608_ch70.indd 4
5/19/07 8:23:49 PM
Presentation Layer
Session Layer
Transport Layer
Destination
7
Network Layer
(e.g., Message Routing)
Physical Layer
(e.g., Message Transmission and Message Switching)
Middle
ware
(e.g., MOM)
Message
Message
Figure 4: Store-and-forward technology can be implemented at different layers of the OSI model
bid44608_ch70.indd 5
5/19/07 8:23:50 PM
MESSAGE SWITCHING
Store-and-Forward Networks
Message switching technology has been the forerunner of
todays advanced data communications. It set the trends
for packet switching technology and more sophisticated
networks of the twenty-first century. In fact, many of the
early data networks and communications services were
actually built upon the message-switched concept and
store-and-forward technology. In the remainder of this
section, we first discuss a few of such networks, which
are considered as major breakthroughs in development
of current complex data communications networks.
Then, we examine some of the common communications
protocols that are designed based on store-and-forward
technology.
AUTODIN Network
The Automatic Digital Network (AUTODIN), developed
in the mid-1960s, is one of the largest and most complex
message switching systems. Using store-and-forward
switching technology, AUTODIN provided a messagebased worldwide communication network for the U.S.
military, handling the data communication needs for the
Department of Defense and other Federal organizations
(the alternative system to handle voice communications
was AUTOVON) (FAS, 2003). AUTODIN has also been
used by other major agencies including the NSA (National
Security Agency), the DIA (Defense Intelligence Agency),
and NATO (North Atlantic Treaty Organization).
AUTODIN was originally considered as a dedicated
backbone network serving primarily for secret data transmission. All switches and routers in the network were controlled by a system called the AUTODIN Switching Center.
The system was designed to run at 2400 bits-per-second
(bps); however, speeds up to 9600 bps were possible.
The header of each message sent by AUTODIN included source, destination, security classification, priority
bid44608_ch70.indd 6
USENET Network
USENET (USEr NETwork) began in 1979 as a bulletin
board between two universities in North Carolina. It is
basically a public access network on the Internet and
other TCP/IP-based networks that provides user news
and group e-mail.
5/19/07 8:23:50 PM
Performance-Challenged Networks
Performance-challenged networks (or simply challenged
networks) are interconnected networks in which end-toend latency, bandwidth asymmetry, and/or path stability
are substantially worse compared to typical Internet environments. Such network environments are particularly
common in space or ocean (acoustic underwater) communications, sensor networks, and military tactical
communications, all of which lack an infrastructure.
In challenged networks the signal propagation time
is comparatively long as a result of either long physical separation of end nodes, as in space, or because of
slow transmission speed, as in water. Consequently, the
total transmission time in such networks can take literally hours or perhaps days. Protocols such as TCP/IP that
expect acknowledgments may not be appropriate for such
environments. This is mainly because too many timeouts
can occur because of heavy congestions in the low capacity links. Another issue with challenged networks is path
instability, which is generally the result of short node lifetime or mobility. For example, in sensor networks many
of the sensors may run out of battery power after some
period of time (Fall, 2003).
One approach to support interconnecting challenged
networks and their interoperability is called delay tolerance networking (DTN), which is based on message switching. The use of message switching for these networks
allows all the small request/responses to be aggregated,
bid44608_ch70.indd 7
Message-Switched Protocols
In this subsection we look at some of the most common
protocols that are based on store-and-forward technology. As a result of their vast applications, we only focus on
three specific systems: electronic mail systems, messagebased client/server systems, and wireless messaging
systems.
X.400 was first published in 1984 (Red Book) and a substantially revised version, known as X.400/88, was published in 1988 (Blue Book). In 1992, new features and
updates were added (White Book) (Betanov, 1992). Although X.400 was originally designed to accommodate
OSI model transport services, today it is typically run
over TCP/IP.
5/19/07 8:23:50 PM
MESSAGE SWITCHING
Sender
P2
UA
P3
UA
P7
P3
MS
MTA
MTS
Presentation Layer
Session Layer
Transport Layer
Network Layer
Data Link Layer
Physical Layer
bid44608_ch70.indd 8
MS
MTA
MTA
P1
P7
P1
5/19/07 8:23:51 PM
bid44608_ch70.indd 9
satellites, as opposed to communications between a single satellite and Earth stations (Charles, 1999). Message
switching is also being considered for interplanetary networks, a high-bandwidth infrastructure designed to link
Earths Internet to other parts of our solar system.
Research suggests that store-and-forward technology can also enhance the wireless range of low-cost
short-range technologies, such as WiFi (IEEE 802.11).
One approach is simply relaying the data between
multiple wireless devices over long distance. A more costeffective approach is to transmit data over short pointto-point links between mobile storage devices called
mobile access points (MAP). Through the use of lowcost WiFi radio transceivers, the data carried by the
MAP is automatically and wirelessly transferred at highbandwidth for each point-to-point connection (Pentland, 2002). The motivation in utilizing this approach is
providing a very low-cost and affordable solution to
resolve the last mile connectivity problem, particularly in
poor rural areas.
PERFORMANCE OF
MESSAGE-SWITCHED NETWORKS
In this section we examine the performance of messageswitched networks in terms of delay and peak traffic load.
Delay Performance
Figure 6 depicts the transmission of a message across
four nodes. Three types of delays can be identified on the
diagram: (a) propagation delaythe time it takes a signal to propagate from one node to the next; (b) transmission delaythe time it takes for a transmitter to send out
a message (e.g., it takes 0.1 sec. to transmit a 10,000 bit
message onto a 100 kbps line); (c) node delaythe time it
takes for a node to perform the necessary processing as it
switches data plus the message storage time. Hence, the
total delay will be the sum of all propagation and transmission delays at each node plus the sum of node delays
at each switch node (Rosner, 1982).
As Figure 6 indicates, prior to retransmission, the entire message must be received at each switch node. This
results in a large end-to-end delay, particularly if the message size is very large. In fact, under heavy load, when
the node delay is not negligible, the total delay using message switching can be significantly longer than for circuit
switching, which requires time to setup and tear-down a
connection.
Node Delay
An important factor impacting node delay is unavailability of the next hop or the destination node. The store-andforward switches in a message-switched network avoid
repeated attempts to send messages to the next hop.
Hence, if the next node is not available, the message
retransmission is simply delayed. Clearly, as the total
number of messages in the network increases, the average
node delay through the network will become longer
until no storage resources are available and message dropping occurs. This is illustrated in Figure 7a.
5/19/07 8:23:51 PM
10
MESSAGE SWITCHING
10 Km;
320 kbps
An Example:
Terminal (1)
Given:
L (Link length) = 10 Km
M (Message size) = 1 M Byte
H (Header size) = 32 Byte
C (Link rate) = 320 kbps
S (Prop. speed) = 200 Km/s
Dn(i) (Node (i) delay) = 0 s
SW A
Dt
Me
ssa
SW B
Terminal (2)
Dp
ge
Dn (A)
DT
Calculated:
Dp (Prop. delay) = L/S = 0.05 s
Dt (Trans. delay = (M + H)/C = 25.001 s
DT (Total delay) =
3(Dt + Dp) + Dn(i) = 75.153 s
Me
ssa
ge
Dn(B)
Me
ssa
ge
Time
Figure 6: Event timing diagram in message-switched networks (the example assumes all the link speeds and lengths are the same;
node delays are assumed to be negligible)
Network
Load
Message
Delay Through
the Network
Total available
network resources
Peak
Load
Peak Load Spread
due to Storage
Total available
network resources
Network Load
(A)
Storage
Delay
Time
(B)
Figure 7: (a) Delay in message-switched networks as the load increases; (b) traffic characteristic as a result of store-and-forward
switches
bid44608_ch70.indd 10
5/19/07 8:23:51 PM
11
Table 1: Comparison of Message, Packet, and Circuit Switching (Stallings, 2004; Martin, 1985)
Circuit-Switched Networks
Message-Switched Networks
bid44608_ch70.indd 11
Packet-Switched Networks
5/19/07 8:23:51 PM
12
MESSAGE SWITCHING
Terminal (1)
Request
Signal
SW A
SW B
Terminal (2)
Terminal (1)
Dp
Packe
t
Packe
t
Packe
t
Dn
Setup
Time
SW A
Dn
SW B
Dp
Packe
t
Packe
t
Packe
t
Accept
Signal
Dt
Terminal (2)
Packe
t
Packe
t
Packe
t
DT
DT
Message
Terminate
Signal
Time
Time
(A)
(B)
Figure 8: Event timing diagram in (a) a circuit-switched network and (b) a packet-switched network; we assume no loss of data
occurs
CONCLUSION
In this chapter we examined the basic concepts of messageswitched networks. We surveyed their advantages and disadvantages and demonstrated their applications. We also
described different elements of a message-switched network and examined their basic functionalities. Although
packet switching is becoming the dominant switching
scheme, message switching is still considered for many
dedicated networks.
GLOSSARY
ARPANET: The Advanced Research Project Agency
Network created by the U.S. Department of Defense.
This organization is credited with creating the Internet in 1969.
CCITT: Short for Comit Consultatif International Tlphonique et Tlgraphique, an organization based in
Geneva, Switzerland, that sets international communications standards. CCITT changed its name to International Telecommunications Union (ITU), the parent
organization, on March 1, 1993.
Datagram: A sequence of bytes that constitutes the unit
of transmission in the network layer.
Exchange: A room or building equipped with manual
or automatic switching equipments that can interconnect incoming communication lines as required.
bid44608_ch70.indd 12
REFERENCES
Stallings, William. 2004. Data and Computer Communications, 7th ed. Upper Saddle River, NJ: Prentice Hall.
Tomasi, Wayne. 2004. Introduction to Data Communications and Networking, 1st ed.. Upper Saddle River, NJ:
Prentice Hall.
Davis, Donald Watts and Derek Leslie Barber. 1973. Communication Networks for Computers. New York: John
Wiley & Sons.
Tanenbaum, Andrew S. 2002. Computer Networks, 4th
ed. New York: Prentice Hall.
5/19/07 8:23:52 PM
FURTHER READING
Shafritz, Arnold B. 1964. The use of computers in message switching networks. Proceedings of the 1964 19th
ACM national conference pp. 142.301142.306.
Federation of American Scientists. 2003. Automatic
Digital Network (AUTODIN). http://www.fas.org (accessed March 1, 2006).
Martin, James. 1985. Telecommunications and the Computer. Englewood Cliffs, NJ: Prentice Hall.
Bush, David. 2003. The AFTN Message Switch Case
Study. http://www.ascolto.co.uk/Resources/ (accessed
February 1, 2006).
Fall, Kevin. 2003. A delay tolerant networking architecture for challenged Internets. Proc. SIGCOMM 2003.
August 2529, 2003. Pages: 2734.
Fall, Kevin. 2002. A message-switched architecture for
challenged Internets. http://www.intel-research.net/
Publications/Berkeley/120520021026_66.pdf (accessed
December 1, 2006).
Middleware Resource Center. 2004. http://www.
middleware.org/ (accessed December 1, 2006).
Betanov, Cemil. 1992. Introduction to X.400. Norwood,
MA: Artech House.
Parker, Tim, and Karanjit B. Siyan. 2002. TCP/IP Unleashed
(Unleashed), 3rd ed. Indianapolis, IN: Sams.
Taylor, Mark, Mohsen Banan, and William Waung. 1996.
Internetwork Mobility: The CDPD Approach. Upper
Saddle River, NJ: Prentice Hall.
Zhao, Feng, and Leonidas Guibas. 2005. Wireless Sensor
Networks: An Information Processing Approach. San
Francisco, CA: Morgan Kaufmann.
Charles, John. 1999. Interplanetary Network Aims for the
Stars. IEEE Computer Society, 32(9):168, 21.
Pentland, Alex (Sandy), Richard Fletcher, and Amir A.
Hasson. 2002. A Road to Universal Broadband Connectivity. http://www.itu.int/council/wsis/080_Annex4.
pdf (accessed February 1, 2006).
Rosner, Roy, D. 1981. Packet Switching. Belmont, CA:
Lifetime Learning Pub.
MobileIN Web Resources. 2004. http://www.mobilein.
com /sms.htm (accessed January 1, 2007).
13
FURTHER READING
Many of the original publications on message switching and store-and-forward technology belong to early
bid44608_ch70.indd 13
5/19/07 8:23:52 PM