Professional Documents
Culture Documents
PACKET SWITCHING
AND MESSAGE SWITCHING CONCEPTS
Whenever we have multiple devices, we have the problem of how to connect them to
make one-on-one communication possible. One solution is to install a point-to-point
connection between each pair of devices(a mesh topology) or between a central
device and every other device (a star topology). These methods, however, are
impractical and wasteful when applied to very large networks. The number and length
of the links require too much infrastructure to be cost efficient, and the majority of
those links would be idle most of the time. Imagine a network of six devices: A, B, C,
D, E, and F. If device A has point-to-point links to devices B, C, D, E, and F, then
whenever only A and B are connected, the links connecting A to each of the other
device are idle and wasted.
Other topologies employing multipoint connections, such as a bus, are ruled out
because the distances between devices and the total number of devices increase
beyond the capacities of the media and equipment.
The communicating devices are labeled A, B, C, D, and so on, and the switches I, II,
III, IV, and so on. Each switch is connected to multiple links and is used to complete
the connections between them, two at a time.
BRBRAITT : March-2007 2
“DATA NETWORKS” FOR JTOs PH-II - Packet Swg & Message Swg Concepts
CIRCUIT SWITCING
Circuit Switching creates a direct physical connection between two devices such as
phones or computers. Instead of point-to-point connections between the three
computers on the left (A, B, and C) to the four computer on the right (D, E, F, and G),
requiring 12 links, we can use four switches to reduce the number and the total length
of the links. Computer A is connected through switches I, II, and III to computer D.
By moving the levers of the switches, any computer on the left can be connected on
the right.
A circuit switch is a device with n inputs and m outputs that creates a temporary
connection between an input link and an output link. The number of inputs does not
have to match the number of outputs.
An n-by-n folded switch can connect n lines in full-duplex mode. For example, it can
connect n telephones in such a way that each phone can be connected to every other
phone.
BRBRAITT : March-2007 3
“DATA NETWORKS” FOR JTOs PH-II - Packet Swg & Message Swg Concepts
Circuit switching today can use either of two technologies : space-division switches or
time-division switches.
Space-Division Switches
In space-division switching, the paths in the circuit are separated from each
other spatially. This technology was originally designed for use in analog networks
but is used currently in both analog and digital networks. It has evolved through a ling
history of many designs.
Time-Division Switches
Time-division switching uses time-division multiplexing to achieve switching.
There are two popular methods used in time-division multiplexing: the time-slot
interchange and the TDM bus.
1 3 2 4 3 1 4 2
Example shows the results of ordinary time-division multiplexing. As you can see, the
desired task is not accomplished. Data are output in the same order as they are input.
Data from 1 go to 1, from 2 go to 2, from 3 go to 3, and from 4 go to 4.
However, we insert a device called a time-slot interchange (TSI) into link. A TSI
changes the ordering of the slots based on the desired connections. In this case, it
changes the order of data from A, B, C, D to C, D, A, B. Now, when the demultiplexer
separates the slots, it passes them to the proper outputs
BRBRAITT : March-2007 4
“DATA NETWORKS” FOR JTOs PH-II - Packet Swg & Message Swg Concepts
How a TSI works ? A TSI consists of random access memory (RAM) with several
memory locations. The size of each location is same as the size of a single time slot.
The number of locations is the same as the number of inputs (in most cases, the
number of inputs and outputs are equal). The RAM fills up with incoming data from
time slots in the order received. Slots are then sent out in an order based on the
decision s of a control unit.
Public Switched Telephone Network (PSTN)
An example of a circuit-switched telephone network is the Public Switched
Telephone Network. Subscriber telephones are connected, through local loops, to end
offices (or central offices). A small town may have only one end office, but a large
city will have several end offices. Many end offices are connected to one toll office.
Several toll offices are connected to a primary office. Several primary offices are
connected to a sectional office, which normally serves more than one state. And
finally several sectional offices are connected to one regional office. All the regional
offices are connected using mesh topology.
Accessing the switching station at end offices is accomplished through dialing. In the
past, telephones featured rotary or pulse dialing, in which a digital signal was sent to
the end office for each number dialed. This type of dialing was prone to errors due to
the inconsistency of humans during the dialing process.
BRBRAITT : March-2007 5
“DATA NETWORKS” FOR JTOs PH-II - Packet Swg & Message Swg Concepts
PACKET SWITCHING
Circuit switching is less well suited to data and other nonvoice transmission. Non-
voice transmissions tend to be bursty, meaning that data come in spurts with idle gaps
between them. When circuit-switched links are used for data transmission, therefore,
the line is often idle and its facilities wasted.
Third, circuit switching is inflexible. Once a circuit has been established, that circuit
is the path taken by all parts of the transmission whether or not it remains the most
efficient or available.
Finally, circuit switching sees all transmission as equal. Any request is granted to
whatever links available. But often with data transmission. We want to be able to
prioritize: to say, for example, that transmission x can go anytime but transmission z
is time dependent and must go immediately.
There are two popular approaches to packet switching: datagram and virtual circuit.
Datagram Approach
BRBRAITT : March-2007 6
“DATA NETWORKS” FOR JTOs PH-II - Packet Swg & Message Swg Concepts
Example shows how the datagram approach can be used to deliver four packets from
station A to station X. In this example, all four packets (or datagrams) belong to the
same message but may go by different paths to reach their destination.
This approach can cause the datagrams of a transmission to arrive at their destination
out of order. It is the responsibility of the transport layer in most protocols to reorder
the datagrams before passing them on to the destination port.
The link joining each pair of nodes can contain multiple channels. Each of these
channels is capable, in turn, of carrying datagrams either from several different
sources or from one source. Multiplexing can be done using TDM or FDM .
Device A and B are sending datagram to device X and Y. Some paths use one channel
while others use more than one. As you can see, the bottom link is carrying two
packets form different source is the same direction. The link on the right, however, is
carrying datagrams in two directions.
In the virtual circuit approach to packet switching, the relationship between all
packets belonging to a message or session is preserved. A single route is chosen
BRBRAITT : March-2007 7
“DATA NETWORKS” FOR JTOs PH-II - Packet Swg & Message Swg Concepts
between sender and receiver at the beginning of the session. When the data are sent,
all packets of the transmission travel one after another along that route.
SVC
and in sequential order. When the last packet has been received and, if necessary,
acknowledged, the connection is released and that virtual circuit ceases to exist. Only
one single route exists for the duration of transmission, although the network could
pick an alternate route in response to failure or congestion.
Each time that A wishes to communicate with X, a new route is established. The route
may be the same each time, or it may differ in response to varying network
conditions.
PVC
Permanent virtual circuits (PVC) are comparable to leased lines in circuit switching.
In this method, the same virtual circuit is provided between two users on a continuous
basis.
BRBRAITT : March-2007 8
“DATA NETWORKS” FOR JTOs PH-II - Packet Swg & Message Swg Concepts
The circuit is dedicated to the specific users. No one else can use it and, because it is
always in place, it can be used without connection establishment and connection
termination. Whereas two SVC users may get a different route every time they request
a connection, two PVC users always get the same route
BRBRAITT : March-2007 9
“DATA NETWORKS” FOR JTOs PH-II - Packet Swg & Message Swg Concepts
BRBRAITT : March-2007 10
“DATA NETWORKS” FOR JTOs PH-II - Packet Swg & Message Swg Concepts
MESSAGE SWITCHING
Message switching is best known by the descriptive term store and forward. In this
mechanism, a node (usually a special computer with a number of disks) receives a
message, stores it until the appropriate route is free, them sends it along.
Store and forward is considered a switching technique because there is no direct link
between the sender and receiver of a transmission. A message is delivered to the node
alone one path then rerouted along another to its destination.
Note that in message switching, the messages are stored and relayed from secondary
storage (disk), while in packet switching the packets are stored and forwarded from
primary storage (RAM)
Message switching was common in the 1960s and 1970s. The primary uses have been
to provide high-level network services (e.g., delayed delivery, broadcast) for
unintelligent devices. Since such devices have been replaces, this type of switch has
virtually disappeared. Also, the delays inherent in the process, as well as the
requirements for large-capacity storage media at each node, make it unpopular for
direct communication.
BRBRAITT : March-2007 11