Upload
akanksha-chauhan
View
216
Download
0
Embed Size (px)
Citation preview
8/3/2019 11202_CircuitandPacketSwitch-15sept
1/28
Circuit Switching and Packet
Switching
8/3/2019 11202_CircuitandPacketSwitch-15sept
2/28
Switching Networks
Long distance transmission is typically done overa network of switched nodes
Nodes not concerned with content of data
End devices are stationsComputer, terminal, phone, etc.
A collection of nodes and connections is acommunications network
Data routed by being switched from node tonode
8/3/2019 11202_CircuitandPacketSwitch-15sept
3/28
Nodes
Nodes may connect to other nodes only, or tostations and other nodes
Node to node links usually multiplexed
Network is usually partially connectedSome redundant connections are desirable for
reliability
Two different switching technologies
Circuit switchingPacket switching
8/3/2019 11202_CircuitandPacketSwitch-15sept
4/28
Simple Switched Network
8/3/2019 11202_CircuitandPacketSwitch-15sept
5/28
Circuit Switching
Dedicated communication path between twostations
Three phases
EstablishTransfer
Disconnect
Must have switching capacity and channel
capacity to establish connection
Must have intelligence to work out routing
8/3/2019 11202_CircuitandPacketSwitch-15sept
6/28
Circuit Switching - Applications
Inefficient
Channel capacity dedicated for duration of connection
If no data, capacity wasted
Set up (connection) takes time Once connected, transfer is transparent
Developed for voice traffic (phone)
8/3/2019 11202_CircuitandPacketSwitch-15sept
7/28
Public Circuit Switched
Network
8/3/2019 11202_CircuitandPacketSwitch-15sept
8/28
Telecomms Components
Subscriber Devices attached to network
Subscriber line Local Loop
Connection to network Few km up to few tens of km
Exchange Switching centers
End office - supports subscribers
Trunks Branches between exchanges
Multiplexed
8/3/2019 11202_CircuitandPacketSwitch-15sept
9/28
Circuit Establishment
8/3/2019 11202_CircuitandPacketSwitch-15sept
10/28
Circuit Switch Elements
8/3/2019 11202_CircuitandPacketSwitch-15sept
11/28
Circuit Switching Concepts
Digital SwitchProvide transparent signal path between devices
Network Interface
Control UnitEstablish connections Generally on demand
Handle and acknowledge requests
Determine if destination is free
construct pathMaintain connection
Disconnect
8/3/2019 11202_CircuitandPacketSwitch-15sept
12/28
Blocking or Non-blocking
Blocking
A network is unable to connect stations because allpaths are in use
A blocking network allows this
Used on voice systems
Short duration calls
Non-blocking
Permits all stations to connect (in pairs) at onceUsed for some data connections
8/3/2019 11202_CircuitandPacketSwitch-15sept
13/28
Control Signal Sequence
Both phones on hook
Subscriber lifts receiver (off hook)
End office switch signaled
Switch responds with dial tone
Caller dials number If target not busy, send ringer signal to target
subscriber
Feedback to caller
Ringing tone, engaged tone, unobtainable Target accepts call by lifting receiver
Switch terminates ringing signal and ringing tone
Switch establishes connection
Connection release when Source subscriber hangs up
8/3/2019 11202_CircuitandPacketSwitch-15sept
14/28
Location of Signaling
Subscriber to network
Depends on subscriber device and switch
Within network
Management of subscriber calls and network
8/3/2019 11202_CircuitandPacketSwitch-15sept
15/28
Packet Switching Principles
Circuit switching designed for voice
Resources dedicated to a particular call
Much of the time a data connection is idle
Data rate is fixed Both ends must operate at the same rate
8/3/2019 11202_CircuitandPacketSwitch-15sept
16/28
Basic Operation
Data transmitted in small packets
Typically 1000 octets
Longer messages split into series of packets
Each packet contains a portion of user data plussome control info
Control info
Routing (addressing) info
Packets are received, stored briefly (buffered)and passed on to the next node
Store and forward
8/3/2019 11202_CircuitandPacketSwitch-15sept
17/28
Use of Packets
8/3/2019 11202_CircuitandPacketSwitch-15sept
18/28
Advantages
Line efficiency
Single node to node link can be shared by many packets overtime
Packets queued and transmitted as fast as possible
Data rate conversion Each station connects to the local node at its own speed
Nodes buffer data if required to equalize rates
Packets are accepted even when network is busy
Delivery may slow down Priorities can be used
8/3/2019 11202_CircuitandPacketSwitch-15sept
19/28
Switching Technique
Station breaks long message into packets
Packets sent one at a time to the network
Packets handled in two ways
DatagramVirtual circuit
8/3/2019 11202_CircuitandPacketSwitch-15sept
20/28
Datagram
Each packet treated independently
Packets can take any practical route
Packets may arrive out of order
Packets may go missing Up to receiver to re-order packets and recover
from missing packets
8/3/2019 11202_CircuitandPacketSwitch-15sept
21/28
8/3/2019 11202_CircuitandPacketSwitch-15sept
22/28
Virtual Circuit
Preplanned route established before any packetssent
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 path
8/3/2019 11202_CircuitandPacketSwitch-15sept
23/28
Virtual
Circuit
Diagram
8/3/2019 11202_CircuitandPacketSwitch-15sept
24/28
Virtual Circuits v Datagram
Virtual circuitsNetwork can provide sequencing and error control
Packets are forwarded more quickly No routing decisions to make
Less reliable Loss of a node looses all circuits through that node
DatagramNo call setup phase
Better if few packetsMore flexible
Routing can be used to avoid congested parts of thenetwork
8/3/2019 11202_CircuitandPacketSwitch-15sept
25/28
Packet Size
8/3/2019 11202_CircuitandPacketSwitch-15sept
26/28
Circuit v Packet Switching
Performance
Propagation delay
Transmission time
8/3/2019 11202_CircuitandPacketSwitch-15sept
27/28
Event Timing
8/3/2019 11202_CircuitandPacketSwitch-15sept
28/28
Use ofVirtual Circuits