Professional Documents
Culture Documents
EEL4595
Data and Computer Comm.
Professor George
Stallings – Chapter 10
Circuit Switching and
Packet Switching
NOTE: Many figures and other materials in this presentation are borrowed from
required and reference textbooks cited on the class web page.
1
EEL4595 University of Florida Fall 2004
Switching Networks
Long-distance transmission is typically
done over a network of switched nodes
Nodes not concerned with content of data
End devices are stations
Computer, terminal, phone, etc.
A collection of nodes and connections is a
communications network
Data routed by being switched from node
to node
2
EEL4595 University of Florida Fall 2004
Switching Nodes
Nodes may connect to other nodes only
(internal), or to stations and other nodes
Node-to-node links usually multiplexed
FDM or TDM
Network is usually not fully connected
Partially connected
Some redundant connections desirable for reliability
Packet switching
3
EEL4595 University of Florida Fall 2004
4
EEL4595 University of Florida Fall 2004
Circuit Switching
Basic Concepts
5
EEL4595 University of Florida Fall 2004
Circuit Switching
Dedicated communication path provided between two stations
Three phases
Circuit establishment
Free channel must be allocated for each leg in the route
Data transfer
Data may be analog or digital, depending upon network type
Digital transmission for voice and data becoming dominant
Typically full-duplex
Circuit disconnect
As requested by one of two stations involved
Action propagated to deallocate the dedicated resources
Must have switching capacity and channel capacity between each
pair of switching nodes on path to establish connection
Switches must have intelligence to make allocations and device
route through network
6
EEL4595 University of Florida Fall 2004
8
EEL4595 University of Florida Fall 2004
Circuit Establishment
10
EEL4595 University of Florida Fall 2004
12
EEL4595 University of Florida Fall 2004
Space-Division Switching
Background
Originally developed for analog environment, but carried over
into digital realm
Principles same whether switch carries analog or digital signals
Separate physical paths (divided in “space”)
Each connection requires establishment of physical path through
switch dedicated to data transfer between 2 endpoints
Basic building block is crossbar switch
Crossbar switch
Number of crosspoints grows as square of number of stations
Loss of crosspoint prevents connection
Inefficient use of crosspoints
All stations connected, yet only a few crosspoints in use
Non-blocking
13
EEL4595 University of Florida Fall 2004
Crossbar Switch
14
EEL4595 University of Florida Fall 2004
Multistage Switch
Designed to overcome crossbar limitations
Scalability
Resilience to failed crosspoints
Utilization of crosspoints
Characteristics
Reduced number of crosspoints
More than one path through network
Increased reliability
But, more complex control scheme required
May be blocking
Can be made non-blocking by increasing number
and/or size of intermediate switches
At increased cost
15
EEL4595 University of Florida Fall 2004
Three-Stage Switch
Time-Division Switching
Characteristics of Time-Division Switching
Partition lower-speed bit stream into pieces that share higher-speed
stream with other streams
Slots manipulated by control logic to route data from input to output
Simple and common example is TDM bus switching
TDM bus switching
Based on synchronous TDM; recurring frame of slots
Source and destination of data in each slot is known
# of slots = # of inputs; slots may be a bit, byte, or larger block
Each station connects through controlled gates to high-speed bus
For duration of each slot
One input line’s gate is enabled allowing small burst of data onto bus
Meanwhile, another line’s gate enabled for output at same time
Thus, data switched from enabled input line to enabled output line
Control memory in switch indicates which gates enabled during each
time slot
17
EEL4595 University of Florida Fall 2004
18
EEL4595 University of Florida Fall 2004
19
EEL4595 University of Florida Fall 2004
Switch-to-Switch Signaling
Switch-to-switch signaling functions required
when called and caller subscribers attached to
different switches
Originating switch seizes idle interswitch trunk
channel
Originating switch sends off-hook signal on trunk,
requesting digit register at target switch (for address)
Terminating switch sends off-hook signal followed by
on-hook (wink) to show register ready
Originating switch sends address
Other steps same as before
21
EEL4595 University of Florida Fall 2004
Location of Signaling
Two key locations
Subscriber to network
Depends on subscriber device and switch
Within network
Entirely computer-to-computer
Management of subscriber calls and network itself
More complex set of commands, responses, and
parameters
22
EEL4595 University of Florida Fall 2004
24
EEL4595 University of Florida Fall 2004
Common-Channel Signaling
Control signals carried over paths independent of voice channel
Physically separate signal path
One control signal channel can carry signals for many subscriber channels
Common control channel for these subscriber lines
More powerful and complex
Configured with bandwidth needed to carry control signals for rich variety of
functions
Increasingly attractive as hardware costs drop
Note: even so, some inchannel signaling still needed (e.g. dial tone, ring, busy)
Two modes of operation
Associated Mode
Common channel closely tracks interswitch trunk groups along entire length between
endpoints
But, still on different channels from subscriber signals
Control signals routed directly to control signal processor
Disassociated Mode
Network augmented with additional nodes (signal transfer points)
Effectively two separate networks with links between to exercise control
More complex
25
EEL4595 University of Florida Fall 2004
26
EEL4595 University of Florida Fall 2004
27
EEL4595 University of Florida Fall 2004
29
EEL4595 University of Florida Fall 2004
30
EEL4595 University of Florida Fall 2004
31
EEL4595 University of Florida Fall 2004
33
EEL4595 University of Florida Fall 2004
Softswitch
34
EEL4595 University of Florida Fall 2004
Packet Switching
Basic Concepts
35
EEL4595 University of Florida Fall 2004
Principles
Circuit switching designed for voice
Resources dedicated to a particular call
Fairly high utilization with talking
Shortcomings with data connections
Much of the time the line is idle
Inefficient use of resources
Data rate is fixed
Both ends must operate at same rate
Limits utility in interconnecting variety of host computers
Packet switching is far better for data
36
EEL4595 University of Florida Fall 2004
37
EEL4595 University of Florida Fall 2004
Use of Packets
38
EEL4595 University of Florida Fall 2004
Advantages
Line efficiency
Single node-to-node link can be shared by many
packets over time
Packets queued and transmitted as fast as possible
Data rate conversion
Each station connects to local node at its own speed
Nodes buffer data if required to equalize rates
Packets accepted even when network is busy
Unlike blocking of calls in circuit switching
But, delivery may slow down (i.e. increased delay)
Priorities can be used
Useful when packets queued, as can send higher-
priority packets first when output link available
39
EEL4595 University of Florida Fall 2004
Switching Technique
Station breaks long message into packets
Packets sent one at a time to the network
Packets handled in one of two approaches
Datagram
Virtual circuit
40
EEL4595 University of Florida Fall 2004
Datagram
Basic characteristics
Each packet treated independently
Packets can take any practical route
Packets may arrive out of order
Some get through faster than others
Packets may go missing
e.g. momentary crash of switching node may
cause all queued packets on it to be lost
Up to receiver to re-order packets and recover
from missing packets
41
EEL4595 University of Florida Fall 2004
Example:
Datagram
42
EEL4595 University of Florida Fall 2004
Virtual Circuit
Basic characteristics
Not a dedicated path
Preplanned route is established before any data
packets sent
First, call request and call accept packets establish
connection (handshake)
Then, each data packet contains a virtual circuit
identifier (VCI) instead of destination address
No routing decisions required for each packet
Clear request packet used to drop circuit
43
EEL4595 University of Florida Fall 2004
Example:
Virtual
Circuit
44
EEL4595 University of Florida Fall 2004
45
EEL4595 University of Florida Fall 2004
Packet Size
Relationship between packet
size and transmission time
Smaller packets provide more
potential for concurrency in
network when multiple hops
Reduces msg. trans. time
However, law of diminishing
returns applies as usual
At some point, too small a packet
starts to increase total
transmission time again
Of course, other factors also in
play with change in packet size
e.g. smaller packets exhibit
higher ratio of overhead
46
EEL4595 University of Florida Fall 2004
47
EEL4595 University of Florida Fall 2004
Event Timing
48
EEL4595 University of Florida Fall 2004
49
EEL4595 University of Florida Fall 2004
51
EEL4595 University of Florida Fall 2004
52
EEL4595 University of Florida Fall 2004
53
EEL4595 University of Florida Fall 2004
54
EEL4595 University of Florida Fall 2004
User Data
X.25 packet
LAPB frame
55
EEL4595 University of Florida Fall 2004
56
EEL4595 University of Florida Fall 2004
Virtual-Circuit Service
Logical connection between two stations
External virtual circuit
Specific preplanned route through network
Internal virtual circuit
Typically one-to-one relationship between
external and internal virtual circuits
Can employ X.25 with datagram-style network
External virtual circuits require logical channel
All data considered part of stream
57
EEL4595 University of Florida Fall 2004
Virtual-Circuit Service
Virtual Calls
Dynamically established virtual circuit
Uses call setup and clearing procedure
a.k.a. Switched Virtual Circuits (SVCs)
Permanent Virtual Circuits (PVCs)
Fixed, network-assigned virtual circuit
Same data transfer as with virtual calls
But no call setup or clearing required
Routing of packets inside network not visible to
user
58
EEL4595 University of Florida Fall 2004
X.25 Levels
User data passes to X.25 level 3
X.25 appends control information
Header
Identifies virtual circuit
Provides sequence numbers for flow and
error control
X.25 packet passed down to LAPB entity
LAPB appends further control information
59
EEL4595 University of Florida Fall 2004
Events in an SVC
Same format as CR
Includes source and but different VC #
destination addresses, selected from those
and VC # selected for available by DCE
this new VC
Either side (A or B)
requests VC
termination, and
other side confirms VC = Virtual Circuit
60
EEL4595 University of Florida Fall 2004
61
EEL4595 University of Florida Fall 2004
62
EEL4595 University of Florida Fall 2004
Multiplexing
Key service provided by X.25
DTE can establish up to 4095 simult. virtual circuits
with other DTEs over single DTE-DCE link
DTE can internally assign circuits as it sees fit
Individual virtual circuits may correspond to applications,
processes, terminals, etc.
12-bit virtual circuit # in each packet to sort out
#0 for diagnostics common to all virtual circuits
Others divided into contiguous ranges for easy
selection at each endpoint
63
EEL4595 University of Florida Fall 2004
64
EEL4595 University of Florida Fall 2004
Migration Strategies
Transport X.25 traffic via another network
e.g. PLP over FR, or XOT (X.25 over TCP/IP)
Courtesy
of Cisco
65
EEL4595 University of Florida Fall 2004
67
EEL4595 University of Florida Fall 2004
68
EEL4595 University of Florida Fall 2004
Protocol Architecture
69
EEL4595 University of Florida Fall 2004
Control Plane
Between subscriber and network
Separate logical channel used
Similar to common channel signaling for circuit-
switching services
Data link layer
LAPD (Q.921)
Reliable data link control
Error and flow control
Between user (TE) and network (NT)
Used for exchange of Q.933 control signal messages
70
EEL4595 University of Florida Fall 2004
User Plane
End-to-end functionality
Transfer of info between ends
LAPF (Link Access Procedure for Frame Mode
Bearer Services) Q.922
Called “LAPF Core” for minimum-function protocol
Frame delimiting, alignment and transparency
Frame mux and demux using addressing field
Ensure frame is integral number of octets (zero bit
insertion/extraction)
Ensure frame is neither too long nor short
Detection of transmission errors
Congestion control functions
71
EEL4595 University of Florida Fall 2004
72