Module 2 Swicthing1
Module 2 Swicthing1
Switching
NEED FOR SWITCHING
frequency
time time
7
PHASES IN CIRCUIT-SWITCHING NETWORKS
• The actual communication in circuit-
switching requires 3 phases:
– connection setup or circuit establishment,
– data transfer, and
– connection teardown or circuitdisconnect.
Phase-1 Connection Setup
1. Before the two systems can communicate,
a dedicated circuit (i.e. a combination of
channels and links) must be established.
Advantages
• Since a circuit is dedicated to a data transmission there is no interference andno sharing of
data.
• The full bandwidth of the channel is guaranteed for the duration of the call.
Disadvantages
• Circuit establishment and circuit disconnect introduces an extra overhead and delay.
• Constant data rate from source to destination.
• Channel capacity, is dedicated for the duration of the connection even if there is no data
transfer.
• Inefficient for bursty traffic.
• Circuit switching treats all transmission as equal. There is no priority among transmission of
data.
Timing in Circuit Switching
Host 1 Host 2
Switch 1 Switch 2
Transmission delay
propagation delay
between Host 1
Circuit and Switch1
Establishment propagation delay
between Host 1
and Host 2
Transfer
Information
time
Circuit
Teardown
End-to-end delay in a circuit switched network
Delay:
The total delay is due to the time needed to create a connection, transfer data, and
disconnect the circuit.
The delay caused is the sum of
• Request signal transfer time,
• Propagation time of the source computer request,
• Signal transfer time of the acknowledgment, and
• Propagation time of the acknowledgement from the destination to the
source
The delay due to transfer is the sum of two parts: data transfer time and propagation time
DATAGRAM NETWORKS (PACKET-SWITCHED NETWORK)
OR CONNECTIONLESS NETWORK.
Characteristics:
1) Create Packets:
-Before transmission, a message is broken down into smaller segments
called packets of a particular size.
-This size may be fixed or variable.
-The size of the packet is determined by the network and the protocol.
-Typically, packet size is 1000 bytes.
-Each packet contains user’s data and some control information.
2) No resource allocation:
-In packet switching, there is no resource allocation for a packet.
-This means that there is no reserved bandwidth on the links, and there is
no scheduled processing time for each packet.
-Resources are allocated on demand.
-The allocation is done on a first-come, first-served basis.
• Store-and-Forward: The packets are passed from node to node
and the nodes may store the data briefly before passing it to the
next node.
• Delay: When a switch receives a packet, the packet must wait if
there are other packets being processed. This can create a delay.
A switch uses its routing table to decide the port that is to be used.
• Packets are independent entities: In a datagram network, each
packet is treated independently of all others. Even if a packet is
part of a multipacket transmission, the network treats it as though it
existed alone. Packets in this approach are referred to as
datagrams.
• Different Routes: The different packets of a message may follow
different routes before they reach the destination. This may happen
because a link is already involved in carrying packets from other
sources and there is not enough bandwidth to carry more packets.
• Variable Delay due to different paths: Since the packets can
follow different routes there is a variable amount of delay and the
packets may arrive out of order at the destination. Some packets
may also be lost.
•Reordering of datagrams: An upper-layer protocol will reorder
the datagrams or ask for lost datagrams before passing them on to
the application layer. The Internet Protocol (IP) transports data in
packets called datagrams.
8.22
Figure 8.8 Routing table in a datagram network
8.23
Figure 8.9 Delay in a datagram network
8.24
Note
Switching in the Internet is done by using the datagram approach
to packet switching at
the network layer.
8.25
8-3 VIRTUAL-CIRCUIT NETWORKS
8.26
Figure 8.10 Virtual-circuit network
8.27
Virtual Circuit
8.28
Switched Virtual Circuit
Switched Virtual Circuit
Switched Virtual Circuit
Addressing issues in Virtual-circuit Networks
8.33
Figure 8.11 Virtual-circuit identifier
8.34
Figure 8.12 Switch and tables in a virtual-circuit network
8.35
Figure 8.13 Source-to-destination data transfer in a virtual-circuit network
8.36
Figure 8.14 Setup request in a virtual-circuit network
8.37
Figure 8.15 Setup acknowledgment in a virtual-circuit network
8.38
Delay in a datagram network for one single packet
8.40
S(witched)VC vs. P(ermanent)VC setup
8.41
S(witched)VC vs. P(ermanent)VC setup
8.42
Advantages
• Packet-switching is more economical than transmission over
private/dedicated lines if the data transmission is short.
• Different packets can travel along different routes till they reach their
destination. Thus, a failure in one switch/node or a particular link
does not affect data communication.