Switching
Switching
The first two are commonly used today. The third has been phased out in
general communications but still has networking applications.
8-1 CIRCUIT-SWITCHED NETWORKS
Teardown Phase
When one of the parties needs to disconnect, a signal is sent to
each switch to release the resources
Example 8.1
Delay
Although a circuit-switched network normally has low efficiency, the
delay in this type of network is minimal. During data transfer the data
are not delayed at each switch; the resources are allocated for the
duration of the connection.
There is no waiting time at each switch. The total delay is due to the
time needed to create the connection, transfer data, and disconnect
the circuit
Note
•Before starting communication, the stations must make a reservation for the
resources to be used during the communication. These resources, such as
channels (bandwidth in FDM and time slots in TDM), switch buffers, switch
processing time, and switch input/output ports, must remain dedicated
during the entire duration of data transfer until the teardown phase.
•Data transferred between the two stations are not packetized (physical layer
transfer of the signal). The data are a continuous flow sent by the source
station and received by the destination station, although there may be
periods of silence.
•There is no addressing involved during data transfer. The switches route the
data based on their occupied band (FDM) or time slot (TDM). Of course,
there is end-to end addressing used during the setup phase
8-2 DATAGRAM NETWORKS
The term connectionless here means that the switch (packet switch)
does not keep information about the connection state. There are no
setup or teardown phases. Each packet is treated the same by a switch
regardless of its source or destination.
Figure 8.8 Routing table in a datagram network
Routing table in a datagram network
• When the switch receives the packet, this destination address is examined; the routing
table is consulted to find the corresponding port through which the packet should be
forwarded.
Delay
There may be greater delay in a datagram network than in a
virtual-circuit network.
Although there are no setup and teardown phases, each packet may
experience a wait at a switch before it is forwarded.
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. A global address in
virtual-circuit networks is used only to create a virtual-circuit
identifier.
Virtual-Circuit Identifier
The identifier that is actually used for data transfer is called the
virtual-circuit identifier (VCl). A VCl, unlike a global address, is a small
number that has only switch scope
Figure 8.11 Virtual-circuit identifier
In the setup phase, the source and destination use their global addresses
to help switches make table entries for the connection.
In the teardown phase, the source and destination inform the switches to
delete the corresponding entry.
The procedure at the switch is the same for each frame of a message. The
process creates a virtual circuit, not a real circuit, between the source and
destination.
Teardowin phase
In this phase, source A, after sending all frames to B, sends a special frame
called a teardown request. Destination B responds with a teardown
confirmation frame. All switches delete the corresponding entry from their
tables.
Note
If resources are allocated during the setup phase, there is no wait time
for individual packets.
Figure 8.16 Delay in a virtual-circuit network
Key Virtual Circuits Datagram Networks
Virtual Circuit is a connection-oriented Datagram networks are a type of
service in which there is an connectionless service where no such
implementation of resources like buffers, resources are required for data
Definition CPU, bandwidth, etc., used by virtual transmission.
circuit for a data transfer session.
In Virtual circuits, as all the resources and In a Datagram network, the path is not
bandwidth get reserved before the fixed as data packets are free to decide
transmission, the path which is utilized or the path on any intermediate router on
Path followed by first data packet would get the go by dynamically changing routing
fixed and all other data packets will use tables on routers.
the same path and consume same
resources.
As there is same path followed by all the Different headers with information of
Header data packets, a common and same other data packet is being used in
header is being used by all the packets. Datagram network.
Virtual Circuit is less complex as Datagram network are more complex as
Complexity compared to that of Datagram network. compared to Virtual circuit.
Due to fixed path and assurance of fixed Datagram networks, due to their dynamic
resources, Virtual Circuits are more resource allocation and dynamic path, are
Reliability reliable for data transmission as more errorprone and less reliable than
compared to Datagram network. Virtual circuits.