STRUCTURE OF A SWITCH
STRUCTURE OF A SWITCH
1. Space-Division Switching
o Here, paths in the circuit are separated from one another spatially.
o It was designed for analog networks.
o Currently it is used in both analog and digital networks.
Figure shows a system connecting four input lines to four output lines.
Imagine: each input line wants to send data to an output line according to the following
pattern:
(1→3), (2→ 4), (3 →1), and (4 → 2), in which arrow means “to”.
Figure combines a TDM multiplexer, a TDM demultiplexer, and a TSI.
TSI consisting of random access memory (RAM) with several memory locations.
Size of each location is same as size of a single time slot.
Number of locations is same as number of inputs.
RAM fills up with incoming data from time slots in the order received.
Slots are then sent out in an order based on the decisions of a control unit.
3. Time- and Space-Division Switch Combinations
Space-division switching
o Advantage : it is instantaneous.
o Disadvantage: number of crosspoints required to make space-division
switching acceptable in terms of blocking.
Time-division switching
o Advantage: it needs no crosspoints.
o Disadvantage: In TSI, processing of each connection creates delays. Each
time slot must be stored by RAM, then retrieved and passed on.
Figure shows a simple TST switch that consists of two time stages and one space
stage and has 12 inputs and 12 outputs.
Instead of one time-division switch, it divides the inputs into three groups (of four
inputs each) and directs them to three timeslot interchanges.
Here, average delay is one-third of one time-slot interchange to handle all 12 inputs.
Last stage is a mirror image of first stage.
Middle stage is a space-division switch (crossbar) that connects the TSI groups to
allow connectivity between all possible input and output pairs.
Structure of Packet Switches
Packet switch has a different structure from circuit switch.
Packet switch has four components:
1. Input ports
2. Output ports
3. Routing processor
4. Switching fabric
1. Input Ports
It has physical-layer processor and a data-link processor.
It performs physical and data-link functions of packet switch.
The bits are constructed from received signal.
Packet is decapsulated from frame.
Errors are detected and corrected.
Packet is now ready to be routed by network layer.
It has buffers (queues) to hold the packet before it is directed to switching fabric.
2. Output Port
It performs same functions as input port, but in reverse order.
First outgoing packets are queued.
Then packet is encapsulated in a frame.
Finally physical-layer functions are applied to the frame to create the signal.
4. Switching Fabrics
The most difficult task is to move packet from input queue to output queue.
Packet switches are specialized mechanisms that use a variety of switching fabrics.
a. Crossbar Switch
It is the simplest type of switching fabric.
b. Banyan Switch
It is a more realistic approach than crossbar switch.
It is a multistage switch with microswitches at each stage that route the packets
based on output port represented as a binary string.
For n inputs and n outputs, we have log2 n stages with n/2 microswitches at each
stage.
First stage routes the packet based on the high-order bit of the binary string.
Second stage routes the packet based on the second high-order bit, and so on.
Number of stages is log2(8) = 3.
Figure shows a banyan switch with eight inputs and eight outputs
A packet has arrived at input port 1 and must go to output port 6 (110 in binary).
First microswitch (A-2) routes the packet based on first bit (1).
Second microswitch (B-4) routes the packet based on second bit (1).
Third microswitch (C-4) routes the packet based on third bit (0).
A packet has arrived at input port 5 and must go to output port 2 (010 in binary).
First microswitch (A-2) routes the packet based on first bit (0).
Second microswitch (B-2) routes the packet based on second bit (1).
Third microswitch (C-2) routes the packet based on third bit (0).
c. Batcher-Banyan Switch
Problem with the banyan switch: possibility of internal collision even when two
packets are not heading for the same output port.
We can solve this problem by sorting the arriving packets based on their
destination port.
K. E. Batcher designed a switch that comes before the banyan switch and sorts
the incoming packets according to their final destinations.
The combination is called the Batcher-banyan switch.