Professional Documents
Culture Documents
CCN Cie 1.2
CCN Cie 1.2
Switchcd
ntwurks
Packet-vwitchcd Mcssagc-swichcd
Circuii-switched nctworks
nclworks networks
Vitual-circuit
Daiagrann
networks nei works
Figure 8.3 shows a trivial circuit-switched network with four switches and four
links. Each link is divided into n(n is 3in the figure) channels by using FDM or TDM.
SECTION 8.| CIRCUIT-SWITCHED NETWORKS 215
Path
We have explicitly shown the multiplexing symbols to emphasize the division of the
link into channcis even though multiplexing can be implicitly included in the switch
fabric.
The end systems, such as computersS or telephones, are directly conaccted to a
switch. We have shown onlytwo end systems for sin1plicity. When end system Anceds
to communicate with end system M, system Aneeds to request aconnection to Mthat
must be acccptod by all switches as well as by Mitself. This is caled the setup phase;
a circuit (channel) is reserved on each link, and the combination of circuits or channels
defincs the dedicated path. After the dedicated path made of connected circuits (channels)
is established, data transfer can take place. After all data have been transferred, the
circuits are torn down.
We need to ermphasize several points here:
OCircuit switching takes place at the physical layer.
O Before starting communication, the stations must make a reservation for the resources
o 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
inputoutput ports, must remain dedicated during the entire duration of data transfer
until the teardown phase.
0 Data transferred between the two stations are not packetized (physical layer transfer
of the signal). The data are acontinuous flow sent by the source station and received
by the destination station, although there may be periods of silence.
OThere 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, as we will sce shortly.
In cireuit switching, the resources need to be reserved during the setup phase;
the resources remain dedicated for the entire duration
of data transter until he teardown phase.
216 CHAPTER 8 SWITCHING
Example 8.1
nctwork to conncct cight tclcphoncs in a small
As a trivial cxamplc. Jct us usc a circuit-switchcd
channcls. We assumc that cach link usCs FDM (o
arca. Communication is through 4-kHz voicc
bandwidth of cach link is then 8 kHz. Figurc 8.4
Conncct a maxi1num of two voice channcls. The 6. Of coursc
7; 2 to 5;3 to 8; and 4 to
shows thc situaion. Tclcphonc lis conncclcd to tclcphonc
madc. Thc switch contyols thc conncctions.
arc
thc situation may change whcn ncw conncctions
Cincuit-swiched etwurk
kHz. kH%
3
0 8
kHz
4
KH%. kHz.
KHz. kHz
Example 8.2
nclwork that connccls computcrs in (wo renolc
As another cxamplc. considcr a circuit-swilchcd
a T-I linc leascd irom a communi
officcs of a privatc company. The offccs arc connccted using
outputs) switchcs in this nctwork. For
cation servicc provider. Therc arc two 4 x8 (4 inputs and 8 to allow comnmunication bctwcen
cach switch, four (output pors arc foldcd into hc input ports
communicalion between the two
computcrs in the samc ofice. Four other output ports allow
offices. Figure 8.5 shows the situation.
4x3 ;4x8
Swich T1 lioe with switch
1.$44 Mhps
SECTION 8.J CIRCUIT-SWITCHED NETWORKS 217
Three Phases
The actual communication in a cicuit-swilchcd nctwork rcquires thrcc
tion sctup, data transfer, and connection tcardown. phases: conncc
Setup Phase
Before the two partics (or nultiple parlies in a conferencc call) cah
conmunicate, a,
dedicated circuit (combination of channcls in links) necds to be established. Thc cnd sys
tems are normally connectcd through dcdicated lines to the switches, so
conneclion sctup
meana' creating dedicated channels betwéen the 'swithës: For examplc, in Figure
when system A nceds to conncct to system M, it scnds a setup rcquest that
8.3;
includes the
address of system M, tÍ switch 1. Switch I finds a channel between itsclf and switch IV
that can be dedicated for this purpose. Switch Ithen sends the
which finds a dedicated channel between itself and switch II. Switch request to switch IV,
llI informs sys
tem M of system A's intention at this time.
In the next step to Nhaking a connection. an
acknowledgment from system M needs
to be sent in the opposite direction to system A. Only after
system A receives this
acknowledgment is the conncction established.
Note that end-to-cnd addressing is required for creating a connecion
two cnd systems. These can be, for example, the addresses of the belwccn the
by the administrator in a TDM network, or telephone computers assigned
numbers in an FDM network.
Data Transfer Phase
After the establishnent of the dedicated circuit (channels), the (wo
parties can transfer data.
Teardown Phase
When onc of thc partics nccds to disconnccl, a signal is sent to each
the resources. switch lo relcasc
Eficiency
It can be argued that
circuit-switched networks are not as cfficient as the other (wo
types of nctworks because resourccs are allocated during the entire
duration of the con
neçtion. These resoUrces arc unavailable to other connections. In a
telephonc
people nornally terminate the communication when they havc finished thcir network,
However, in computcr nctworks, a computcr can be connccted to another conversation.
evcn if therc is no activity fora long ime. n this case, allowing computer
mcans that other conncctions ure deprived. resources to be dedicated
Delay
Although a circuit-swithed nctwork normally has low
of network is minimal. During data iransfer the data areefficiency, the delay in this type
not delayed at cach
rcsources are allocatcd for the duration of the connection. Figure 8.6 shows switch; the
the idea of
delay in a circuit-switched nctwork when only two switches are
"As Figure 8.6 shows. there is no waiting time at involved.
lo the time necded to crcatc the conncction. transfer each switch, The total delay is due
data, and disconncct the circuit. The
218 CHAPTER 8 SWITCHING
Conncct
delay
Tolal
Dala iransfer
DIS
Tinic Timc
Tine Time
for each packet. Resources arc allocated on demand. The allocation is done on a first
come, first-served basis. When aswitch receives a packet, no matter what is the source
or destination, the packet must wait if there arc other packets being processed. As with
other systems in our daily life, this lack of reservation may create delay. For exarmple, if
we do not have a rescrvation at a restaurant, we might have to wait.
Dalagran1 actwork
A
In this example, all four packets (or datagrans) belong to the same message, but
may travel different paths to reach their destination. This is so because the links may be
involved in carrying packets from other sources and do nÍt have the necessary bandwidth
available to catry all the packets from Ato X. This approach can cause the datagrams of
a transmission to arrive at their destination out of order with different delays between the
packets. Packets may also be lost or dropped because of a lack of resources. In most
protocols, it is the responsibility of an upper-layer protocol to reorder the datagrams or
ask for lost datagrans before passing them on to the application.
The datagram networks are sormetimes referred to as connectionless networks. The
term connectionless here means that the switch (packet switch) does not keep information
about the connection state. There are no setup r teardown phases. Bach packet is treated
the same by a switch regardless of its source or destination.
220 CHAPTER8 SWITCHING
Routing Table
Ithere are no sctup or teardown phases, how are the packets routed to their
destinations
in adatagram network? In this type of network, cach switch (or packet switch) has a rout
ing table which is based on the destination address. The routing tables are dynamic and
are updated periodically. The destination addresses and the corresponding forwarding
output ports are recorded in the tables. This is different from the table of a circuit
switched network in which each entry is created when the setup phase is completed and
deleted when the teardown phase is over. Figure 8.8 shows the routing table for a
switch.
-Destination Outpul:
ddres$: port
1232
4150 2
9130 3
Aswtch in adatagram netvork uses arouing table that is based on the destination address.
Destination Address
Every packet in a datagråm network carries a header that contains, among other infor
mation, the destination address of the packet. When the switch receives the packet, this
destifation address is examined; the routing table is consulted to find the corresponding
port through which the packet shouldbe forwarded. This address,unlike the address.
in a virtual-circüit-switched network, remains the same during the entire journey of the
packet.
Effciency
The efficiency of a datagram network is better than that of a circuit-switched network;
resources are allocated only when there are packets to be transferred. If asource sends
a packet and there is a delay of a few minutes before another packet can be sent, the
resources can be reallocated during these minutes for other packets from other sources.
SECTION 8.3 VIRTUAL-CIRCUIT NETWORKS 221
Delay
There may be greater delay in a dalagram nctwork than in å virtoal-circuit network.
Although there are no setup and teardöwn phases, each packet may experience await at a
switch before it is forwarded. In addition, since not all packets in a message necessarily
travel through the same switches, the delay is not uniforin for the, packets of a smessage.
Figure 8.9 gives an example of delay in adaiagram network for one single packet.
Transission
thnc
Waitlng delay
Toial
lie
Waiting
The packet travels through two swilches. There are three transmission times (37).
three propagation delays (slopes 3t of the lines), and two waiting timcs (wy + w). We
ignore thc processing linc in cach switch. The total dclay is