Switching (Modified)
Switching (Modified)
Switching
8.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 8.1 Switched network
8.2
Figure 8.2 Taxonomy of switched networks
8.3
8-1 CIRCUIT-SWITCHED NETWORKS
8.5
Figure 8.3 A trivial circuit-switched network
8.6
Circuit Switching
Circuit switching:
There is a dedicated communication path between
two stations (end-to-end)
The path is a connected sequence of links between
network nodes. On each physical link, a logical
channel is dedicated to the connection.
Communication via circuit switching has three
phases:
Circuit establishment (link by link)
Routing & resource allocation (FDM or TDM)
Data transfer
Circuit disconnect
Deallocate the dedicated resources
The switches must know how to find the route
to the destination and how to allocate
bandwidth (channel) to establish a connection.
8.7
Note
8.8
Example 8.1
8.9
Figure 8.4 Circuit-switched network used in Example 8.1
8.10
Example 8.2
8.11
Figure 8.5 Circuit-switched network used in Example 8.2
8.12
Figure 8.6 Delay in a circuit-switched network
8.13
Note
8.14
Circuit Switching Properties
Inefficiency
Channel capacity is dedicated for the whole duration
of a connection
If no data, capacity is wasted
Delay
Long initial delay: circuit establishment takes time
Low data delay: after the circuit establishment,
information is transmitted at a fixed data rate with no
delay other than the propagation delay. The delay at
each node is negligible.
Developed for voice traffic (public telephone
network) but can also applied to data traffic.
For voice connections, the resulting circuit will enjoy a
high percentage of utilization because most of the
time one party or the other is talking.
But how about data connections?
8.15
8.2 Packet Switching Principles
8.16
Packet switching is designed to
Basic Operation
8.17
Advantages of Packet Switching
Line efficiency
Single node-to-node link can be dynamically shared
by many packets over time
Packets are queued up and transmitted as fast as
possible
Data rate conversion
Each station connects to the local node at its own
speed
In circuit-switching, a connection could be
blocked if there lacks free resources. On a
packet-switching network, even with heavy
traffic, packets are still accepted, by delivery
delay increases.
Priorities can be used
On each node, packets with higher priority can be
8.18 forwarded first. They will experience less delay than
Packet Switching Technique
Datagram approach
Virtual circuit approach
8.19
8-2-1 DATAGRAM NETWORKS
8.21
Datagram
22
Figure 8.7 A datagram network with four switches (routers)
8.23
Figure 8.8 Routing table in a datagram network
8.24
Note
8.25
Note
8.26
Figure 8.9 Delay in a datagram network
8.27
Note
8.28
Sumary Datagram
8.30
Virtual Circuit
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
Note
8.39
Figure 8.16 Delay in a virtual-circuit network
8.40
Note
8.41
Virtual Circuits vs Datagram
Virtual circuits
Network can provide sequencing (packets arrive at the same
order) and error control (retransmission between two nodes).
Packets are forwarded more quickly
Based on the virtual circuit identifier
No routing decisions to make
Less reliable
If a node fails, all virtual circuits that pass through that node fail.
Datagram
No call setup phase
Good for bursty data, such as Web applications
More flexible
If a node fails, packets may find an alternate route
Routing can be used to avoid congested parts of the network
42
Comparison of
communication
switching techniques