11 Switching
11 Switching
SWITCHING
Switching
A computer network consists of a large number or
computers and interconnecting devices. Passage of a
message from a source to a destination involves many
decisions.
When a message reaches a connecting device, a decision
needs to be made to select one of the output ports
through which the packet needs to be sent out.
The connecting device acts as a switch that connects one
port to another port and data movement between the
devices is called switching.
Switched Networks
A switched network consists of a series of interlinked
nodes called switches. Switched are hardware and
software devices capable of creating temporary circuit
between two or more devices.
Classification of switched networks:
Circuit Switching
Packet Switching
Message Switching
CIRCUIT SWITCHING
In circuit switching a dedicated physical connection is
established between sender and receiver.
A circuit-switched network is made of a set of switches
connected by physical links.
The dedicated path established between sender and receiver is
maintained for entire duration of conversation.
Circuit switching takes place at the physical layer.
Phases of Circuit Switching
Phase I: Setup
Before starting communication, the stations must make a reservation for
the resources to be used for communication. The resources, such as
channels, switch, input output ports must be dedicatedly allotted during
entire communication
Phase II: Data transfer
Once circuit is established between sender are receiver continuous data
(not packets) flows between sender and receiver there may be no data in
between.
Phase III: Circuit tear down
When any one of the parties needs to disconnect, a signal is sent to each
switch to release the resources.
Advantage of Circuit Switching
Dedicated path or circuit between sender and receiver
provides a guaranteed data rate.
Once circuit is established data can be transmitted without
any delay.
Method is suitable for long continuous transmission.
Disadvantages of Circuit Switching
As the connection is dedicated it cannot be used to transmit
any other data even if channel is free.
It is inefficient in terms of utilization of system resources .
Dedicated channels consume more bandwidth.
Not efficient for long distance communication.
Telephone networks are the best example of circuit
switched networks.
PACKET SWITCHING
Adopted in 1970 for long distance communication.
In packet switching message is broken up into packets of fixed or
variable size.
Each of the packets contain header with the information of sender,
receiver and other control information.
No resources are dedicatedly allocated before the transfer of packets.
Resources are allocated on demand on first come first server bases.
These networks are also called as store and forward networks as at
each node stores the packet briefly and route it according to the
information stores in header.
Advantages of Packet Switching
Line efficiency increases as node to node link can be shared by
many packets over time.
As the routing is done on packet basis, intermediate nodes do not
have to wait for the entire message, hence transmission is fast.
Buffer requirement at the nodes is small as packets are small.
More effective for real time burst data.
Packets are accepted even when network is busy.
Priorities can be used.
Switching nodes can route the packets as and when required.