chapter 3
chapter 3
Institute of Technology
Department of Electrical and Computer Engineering
(communication Engineering)
5th year Second semester
Switching and Intelligent Networks
By: Ahmed A. (MSc)
Chapter 3
Outline
Switching Systems
Packet Switching
Packet switch: Datagram networks & VC networks
Blocking in packet switching
Switch generations
Switch fabrics and shared memory switches
Case study: ATM
2
Packet switching
In a circuit switch, path of a sample is determined at time of connection
establishment
– No need for a sample header--position in frame is enough
In a packet switch, packets carry a destination field
– Need to look up destination port on-the-fly
– Datagram
• lookup based on entire destination address
– Cell
• lookup based on VCI (virtual circuit identifier)
Packet Switching: OSI layer entities
• Repeaters: at physical level
• Bridges: at datalink level (based on MAC addresses) (L2)
– discover attached stations by listening
• Routers: at network level (L3)
– participate in routing protocols
• Application level gateways: at application level (L7)
– treat entire network as a single hop
– e.g mail gateways and transcoders
Structure of a packet switch/router
Control
Interconnecti
3 Line Card Line Card 3
Fabric
on
…
…
…
…
N Line Card Line Card N
link layer functions: symbol timing, line coding, framing, physical addressing, error checking,
MAC protocol, data link protocol, and buffering.
Resources and bottlenecks in switches
• Processing, memory and bus bandwidth
– Processing implements protocols, hence processing capacity places a limit on maximum rate at which
switch can operate
– Memory stores packets, hence the amount of memory determines the rate at which packets are lost,
placing another limit on switch load, moreover memory bandwidth also place limit on switch rate
– I/O bus bandwidth places a limit on total rate at which information can be transferred between
ports.
• With same technology, a later generation switch achieves greater capacity, but at greater
cost
First generation switch
• Most Ethernet switches and cheap packet routers
• In general, smaller size => more per-packet overhead, but more preemption points/sec
• Don’t suffer from head-of-line blocking. But output buffers need to run much faster than
trunk speed (why?)
• Can reduce some of the cost by using the knockout principle
unlikely that all N inputs will have packets for the same output
drop extra packets, fairly distributing losses among inputs
Buffering
Shared memory
• Cons
– scheduling is hard
Hybrid solutions
Input
Dual Output
Ported Ports
Ports
Memory
Case Study: ATM
Shared Memory Switch
All incoming cells multiplexed into a single stream (common memory)
Organized into output queues per output port
Cells retrieved sequentially
Central controller and memory bandwidth must be very fast (at least N times input port speed)
Cells processed one at a time and Bus must be very fast (at least N times input port speed)
Case Study: ATM
Shared-medium Packet Switch
OUTPUT 1
INPUT 1 P/S
S/P FIFO
...
...
...
...
...
OUTPUT N
INPUT N FIFO P/S
S/P
Case Study: ATM
Space Division Switches
Space Division Switching is a circuit switching technology in which a single transmission path
is accomplished in a switch by using a physically separate set of cross points.
Space Division Switching can be achieved by using crossbar switch. A crossbar switch is a
metallic cross point or semiconductor gate that can be enabled or disabled by a control unit.
The Crossbar switch is made by using the semiconductor.
Space Division Switching has high speed, high capacity, and non-blocking switches.
Space division switches provide multiple concurrent paths from the input ports to the output
ports.
Cells coming in on different input ports and heading to different output ports can proceed
through the switch simultaneously on these separate paths, without interfering with each other.
Space Division Switches can be categorized in two ways:
1. Crossbar Switch
2. Multistage Switch
Crossbar Switch
• The Crossbar switch is a switch that has n input lines and n output lines. The
crossbar switch has n2 intersection points known as cross points.
Disadvantage of Crossbar switch:
• The number of cross points increases as the number of stations is increased.
Therefore, it becomes very expensive for a large switch. The solution to this is to
use a multistage switch.
Multistage Switch
• Multistage Switch is made by splitting the crossbar switch into the smaller units
and then interconnecting them.
• It reduces the number of cross points.
Main Differences Between Space Division
Switching and Time Division Switching
• The main difference between space division switching and time division
switching:
Space division switching is a technique that can be implemented for both analog and
digital networks.
On the other hand, the time-division switching.
In space division switching, the path established between two devices is continuous
during the exchange whereas in time-division switching signals are sent at fixed
intervals.
Space division switching is instantaneous whereas time-division switching has a
processing delay.
Cont……
Space division switching uses Cross points that are not shared whereas
in time-division switching there is no use of Cross points.
Space division switching is applicable for both analog and digital
networks whereas time-division switching is only for digital networks.
In space division switching, there is no time difference between the
transfer of the coded values from input to output whereas, in time-
division switching, the coded values are stored and then transferred.
End of Chapter 3
Thank you