You are on page 1of 25

SWITCHING

AND

Its TECHNIQUES
SWITCHING
• For one-to-one communication b/w
computers , one way is to connect them
with each other , but this requires wiring that
will increase cost.

• So alternative technique is switching.

Business Data Communications, 5 2


e
Simple Switched Network

Business Data Communications, 5 3


e
SWITCHING TYPES
– Circuit switching

– Packet switching

– Message switching

Business Data Communications, 5 4


e
Circuit Switching
• Circuit switching is a technique that directly
connects the sender and the receiver .
• Telephone switching equipment, for example,
establishes a path that connects the caller's telephone
to the receiver's telephone by making a physical
connection.
• With this type of switching technique, once a
connection is established, a dedicated path exists
between both ends until the connection is terminated.
• Routing decisions must be made when the circuit is
first established, but no decisions are made after that
time. Business Data Communications, 5 5
e
Circuit Switching cont’d
• The computer initiating the data transfer
must ask for a connection to the
destination.
• Once the connection has been initiated and
completed to the destination device, the
destination device must acknowledge that
it is ready and willing to carry on a
transfer.
Business Data Communications, 5 6
e
Diagram showing circuit switching

Business Data Communications, 5 7


e
Circuit-Switching Stages
• Circuit establishment
• Data transfer
– point-to-point from endpoints to node
– internal switching among nodes
• Circuit disconnect

Business Data Communications, 5 8


e
Circuit Establishment
• Station requests connection from node
• Node determines best route, sends message
to next link

• Once nodes have established connection,


test message is sent to determine if
receiver is ready/able to accept message

Business Data Communications, 5 9


e
Data Transfer
• Data transfer from sender to receiver after
dedicated path is established.

• Usually a full-duplex connection


throughout.

Business Data Communications, 5 10


e
Circuit Disconnect
• When transfer is complete, one station
initiates termination.

• Signals must be propagated to all switches


(nodes) in order to free up resources

Business Data Communications, 5 11


e
Advantages---------
• The communication channel (once
established) is dedicated.
• Data transmitted without delays.
• This method suitable for long continuous
transmission.

Business Data Communications, 5 12


e
Disadvantages---------
– Long connection establishment delay.
– Hosts must agree on speed of communication.
– Network does not provide flow control nor error
control.
– More expensive than any other switching techniques,
because a dedicated path is required for each
connection.
– Inefficient use of the communication channel,
because the channel is not used to transmit any other
data when the connected systems are not using it .
– Inefficient use of resources.

Business Data Communications, 5 13


e
Message Switching
• With message switching there is no need to establish a dedicated path
between two stations.
• A unit of information called a message may be of any length.
• When a station sends a message, the destination address is appended
to the message.
• The message is then transmitted through the network, from node to
node.
– Successive message may not follow the same route.

• Each node receives the entire message, stores it in its entirety on


disk, and then transmits the message to the next node.
• This type of network is called a store-and-forward network.

Business Data Communications, 5 14


e
Message Switching diagram

Business Data Communications, 5 15


e
Message switching diagram

Business Data Communications, 5 16


e
Advantages-----------
– There is no waiting for a connection to be established.
– Channel efficiency can be greater compared to circuit-
switched systems, because more devices are sharing
the channel.
– Traffic congestion can be reduced, because messages
may be temporarily stored in route.
– Message priorities can be established due to store-
and-forward technique.
– Inexpensive technique.

Business Data Communications, 5 17


e
Disadvantages------------
– Long messages can block links for a long time
while they are being forwarded.
– Switches must have large storage capacities in
order to store very long messages.
– Transmission delays.
– Message switching is not compatible with
realtime applications like voice or video.

Business Data Communications, 5 18


e
Packet Switching
• With packet switching, messages are broken into small pieces called
packets. The packets are routed individually through the network.
– Successive packets may not follow the same route.
• Each packet has a header containing source and destination addresses and
well as ordering information.

• When the packets arrive at the destination host, they must be reassembled
to form the original message.
• Size of packet depends upon type of network.
• No resources are allocated in advance.

• There are two methods of packet switching: Datagram


• and virtual circuit.

Business Data Communications, 5 19


e
Diagram of packet Switching

Business Data Communications, 5 20


e
Packet-Switching Techniques
• Datagram
– each packet treated independently and referred to as a datagram
– packets may take different routes, arrive out of sequence
– Also called connectionless networks.
• Virtual Circuit
– Preplanned logical (not actual) route established for all packets
– similar to circuit switching, but the circuit is not dedicated
– All packets follow same path.

Business Data Communications, 5 21


e
Datagram
Diagram

Business Data Communications, 5 22


e
Virtual Circuit
Diagram

Business Data Communications, 5 23


e
Advantages of packet switching----
• Route packets when required.
• Intermediate nodes donot have to wait for entire
message.so transmission is fast.
• No buffering.
• Allow many devices to communicate through
same network channel.
• Fast method for realtime applications.

Business Data Communications, 5 24


e
Disadvantages-------
• Packets may be lost, so sequence numbers are
must.
• Packets may arrive at their destination out-of-
order and there may be a long delay while a small
number of slow packets find their way through
the network.
• It is not certain how long it will take a packet to
pass through the network or how long to wait
before deciding to request its retransmission).
Business Data Communications, 5 25
e

You might also like