Switching Technique
Switching Technique
• Switched Network
• Taxonomy of Switched Networks
• Circuit-Switched Network
• Packet-Switched Network
• Message-Switched Network
4
Switched network
A network is a set of connected devices. Whenever we have multiple devices, we
have the problem of how to connect them to make one-to-one communication
possible.
These methods, however, are impractical and wasteful when applied to very large
networks.
6
Taxonomy of Switched Networks
7
Switching at TCP/IP layers
8
Circuit-Switched Networks
9
A Trivial Circuit-Switched Network
10
Note
In circuit switching, the resources need to be reserved during the setup phase; the
resources remain dedicated for the entire duration of data transfer until the teardown
phase.
11
Example
12
Circuit-Switched Network used
in Example
13
Three Phases
The actual communication in a circuit-switched network requires three phases:
• Connection setup
• Data transfer
• Connection teardown.
14
Delay in a circuit-switched network
15
Note
Switching at the physical layer in the traditional telephone network uses the circuit-
switching approach.
16
Circuit-Switched Routing
Many connections will need paths through more than one switch
Need to find a route
• Efficiency
• Resilience
Public telephone switches are a tree structure
• Static routing uses the same approach all the time
Dynamic routing allows for changes in routing depending on traffic
• Uses a peer structure for nodes
17
Alternate Routing
18
Circuit Switching Vs Packet Switching
19
Packet-Switched Networks
In data communications, we need to send messages from one end system to another.
If the message is going to pass through a packet-switched network, it needs to be
divided into packets of fixed or variable size. The size of the packet is determined by
the network and the governing protocol.
20
Two Basic Forms of Packet Switching
21
Datagram
Each packet treated independently
Packets can take any practical route
Packets may arrive out of order
Packets may get lost or delayed
It is up to receiver to re-order packets and recover from missing packets
22
Virtual Circuit
Preplanned route established before any packets sent
Call request and call accept packets establish connection (handshake)
Each packet contains a virtual circuit identifier instead of destination address
No routing decisions required for each packet
Clear request to drop circuit
Not a dedicated
23
Internal Virtual Circuit and Datagram
Operation
24
A datagram network with four
switches (Routers)
25
Routing table in a datagram
network
26
Note
A switch in a datagram network uses a routing table that is based on the destination
address.
The destination address in the header of a packet in a datagram network remains the
27
Delay in a datagram network
28
Virtual-circuit Networks
29
Virtual-Circuit Networks
30
Virtual-Circuit Network
31
Virtual-circuit Networks Addressing
In a virtual-circuit network, two types of addressing are involved: global and local.
Global Addressing
A source or a destination needs to have a global address-an address that can be
unique in the scope of the network or internationally if the network is part of an
international network. However, we will see that a global address in virtual-circuit
networks is used only to create a virtual-circuit identifier.
Local Addressing/ Virtual-Circuit Identifier
The identifier that is actually used for data transfer is called the virtual-circuit
identifier (VCl). A VCl is a small number that has only switch scope; it is used by a
frame between two switches. When a frame arrives at a switch, it has a VCI; when it
leaves, it has a different VCl. Note that a VCI does not need to be a large number
since each switch can use its own unique set of VCls.
32
Virtual-Circuit Identifier
33
Note
In virtual-circuit switching, all packets belonging to the same source and
destination travel the same path;
but the packets may arrive at the destination with different delays
if resource allocation is on demand.
34
Delay in a virtual-circuit network
35
Message Switching
36
Message Switching
37
Message Switching
Advantages
•Sharing of communication channels ensures better bandwidth usage.
•It reduces network congestion due to store and forward method. Any switching node
can store the messages till the network is available.
•Broadcasting messages requires much less bandwidth than circuit switching.
•Messages of unlimited sizes can be sent.
•It does not have to deal with out of order packets or lost packets as in packet
switching.
Disadvantages
•In order to store many messages of unlimited sizes, each intermediate switching
node requires large storage capacity.
•Store and forward method introduces delay at each switching node. This renders it
unsuitable for real time applications.
38
Switched VC vs. Permanent VC setup
If permanent, an outgoing VCI is given to the source, and an incoming VCI is given
to the destination.
The source always uses this VCI to send frames to this particular destination.
The destination knows that the frame is coming from that particular source if the
frame carries the corresponding incoming VCI.
39
References
[1]http://widi.lecturer.pens.ac.id/Teori/Komunikasi%20Data/Data
%20Communications%20and%20Networking%20By%20Behrouz
%20A.Forouzan.pdf
05/12/2024 40
THANK YOU