Unit-1 Switching
Unit-1 Switching
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1
Introduction
2
Contd..
3
Contd..
4
Contd..
5
https://sameer9247.wordpress.com/2017/07/23/
osi-open-systems-interconnectionlayer/
6
Contd..
7
Contd..
8
Contd.. Router
9
Switching
10
Contd..
11
8-1 CIRCUIT-SWITCHED NETWORKS
• A circuit-switched network consists of a set of switches connected
by physical links.
• A connection between two stations is a dedicated path made of one
or more links.
• However, each connection uses only one dedicated channel on each
link.
• Each link is normally divided into n channels by using FDM or
TDM.
Topics discussed in this section:
Three Phases
Efficiency
Delay
Circuit-Switched Technology in Telephone Networks
12
Contd..
15
Example 8.1
16
Contd..
17
Example 8.2
18
Contd..
19
Contd..
21
Contd..
4 hops (point-to-point links) between two terminals nodes;
Transmission rate 9600 bps on all links; 24 overhead bits [Header +
Trailer] for each packet; 1ms per-hop signal propagation delay. 1
sec. Call set-up time for circuit switched connection across 4 hops.
(a) Message size 5000 bits, packet size 1024 bits, all other
parameters the same.
22
Problem
A path in a digital circuit-switched network has a data rate of
1 Mbps. The exchange of 1000 bits is required for the setup and
teardown phases. The distance between two parties is 5000 km.
Answer the following questions if the propagation speed is 2 X 108
m:
a. What is the total delay if 1000 bits of data are exchanged during
the data transfer phase?
b. What is the total delay if 100,000 bits of data are exchanged
during the data transfer phase?
c. What is the total delay if 1,000,000 bits of data are exchanged
during the data transfer phase?
d. Find the delay per 1000 bits of data for each of the above cases
and compare them. What can you infer?
23
Note
24
Blocking or Non-blocking
Blocking
A blocking network is unable to connect end- points because the
critical paths are in use and there are no alternative paths
Used on voice systems
Short duration calls
Non-blocking
Permits all stations to connect (in pairs) at once
Used for some data connections
25
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
26
Alternate Routing
Possible routes between end offices predefined
Originating switch selects appropriate route
Routes listed in preference order
Different sets of routes may be used at different times
27
8-2 DATAGRAM NETWORKS
39
Datagram
Each packet treated independently
Packets can take any practical route
Packets may arrive out of order
Packets may get lost or delayed
Up to receiver to re-order packets and recover from missing packets
40
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
41
Contd..
42
Contd..
44
Note
45
Contd..
47
Note
48
8-3 VIRTUAL-CIRCUIT NETWORKS
49
Contd..
A virtual-circuit network is a cross between a circuit-switched network
and a datagram network. It has some characteristics of both.
As in a circuit-switched network, there are setup and teardown
phases in addition to the data transfer phase.
Resources can be allocated during the setup phase, as in a circuit-
switched network, or on demand, as in a datagram network.
As in a datagram network, data are packetized and each packet
carries an address in the header. However, the address in the header
has local jurisdiction (it defines what should be the next switch and
the channel on which the packet is being canied), not end-to-end
jurisdiction. The reader may ask how the intermediate switches
know where to send the packet if there is no final destination
address carried by a packet. The answer will be clear when we
discuss virtual-circuit identifiers in the next section.
50
Contd..
As in a circuit-switched network, all packets follow the same path
established during the connection.
A virtual-circuit network is normally implemented in the data link
layer, while a circuit-switched network is implemented in the
physical layer and a datagram network in the network layer. But
this may change in the future.
51
Contd..
52
Contd..
53
Contd..
56
Contd..
58
Contd..
59
Note
60
Switched VC vs Permanent VC setup
61
Contd..
A PVC has several drawbacks:
Always connected, so always paying
Connection is between two parties only.
62
63
8-4 STRUCTURE OF A SWITCH
64
Structure of Circuit Switches
Circuit Switching uses either of two technologies
Space-Division Switch
Time-Division Switch
65
Space-Division Switch
Single transmission path is accomplished in a switch by using a
physically separate set of crosspoints.
Crossbar Switch
Multistage Switch
66
Contd..
Crossbar switch
Figure 8.17 Crossbar switch with three inputs and four outputs
67
Contd..
Multistage switch
68
Problem
Design a three-stage, 200 x 200 switch (N =200) with k =4 and n =20.
Solution
In the first stage we have N/n or 10 crossbars, each of size 20 x 4.
In the second stage, we have 4 crossbars, each of size 10 x 10. In
The third stage, we have 10 crossbars, each of size 4 x 20.
The total number of crosspoints is 2kN + k(N/n)2, or 2000
crosspoints.
This is 5 percent of the number of crosspoints in a single-stage
switch (200 x 200 = 40,000).
69
Three Stage Switch
70
Contd..
71
Contd..
73
Contd..
74
Contd..
75
Contd..
76
Contd..
77
4-4 NETWORK LAYER SERVICES
78
Logical Addressing
8.85
Problems
Design a three-stage, 200 × 200 switch (N = 200) with k = 4 and n =
20.
Sol. first stage we have N/n or 10 crossbars, each of size 20 × 4. In
the second stage, we have
4 crossbars, each of size 10 × 10. In the third stage, we have 10
crossbars, each of size 4 × 20.
8.86
Sol conti.
The total number of crosspoints is 2kN + k(N/n)2, or 2000
crosspoints. This is 5 percent of the
number of crosspoints in a single-stage switch (200 × 200 =
40,000).
8.87
Drawback
one drawback—blocking during periods of heavy traffic.
Blocking refers to times when one input cannot be connected to an
output.
8.88
Non Blocking Condition
Clos investigated the condition of nonblocking in multistage
switches.
In nonblocking switching fabric, the number of middle-stage
switches must be at least 2n – 1.
In other words, we need to have k ≥ 2n – 1.
8.89
Clos Criteria
8.90
In Summary
What are the differences between a circuit switched network and a
packet switched network?
Where can the control signals travel in a telephone network?
What is a non-blocking switch/network?
What are the differences between datagram packet switched and
virtual circuit packet switched?
What are the differences between a circuit switch and a packet
switch?
91