Switch Fabrics 1: "Centralized" Vs Distributed Switches
Switch Fabrics 1: "Centralized" Vs Distributed Switches
Switch fabrics 1
Potential advantages of centralized switches: Regular internal structure, c.f. heterogeneous distributed
systems
Well consider centralized switches first, and later consider distributed switching (using bridges)
Regular centralized designs can conceivably be applied to distributed switching, provided component consistency is possible.
Copyright 2003, Tim Moors Copyright 2003, Tim Moors
Well consider some of these structures (e.g. crossbar, Banyan, time-division) shortly... Figures from H. Peyravi
Copyright 2003, Tim Moors Copyright 2003, Tim Moors
A 3
time
3 mux
1
demux
time
Popular in optical networks (OADM), where adding/dropping a wavelength is one of the few functions possible with photonic technology.
Copyright 2003, Tim Moors
merge
Application: Construct high-speed link from multiple lower-speed links, e.g.: Need to deal with potential mis-sequencing.
Copyright 2003, Tim Moors
1100Mb/s port from 1010Mb/s switch ports Interconnect routers through PSTN, with rate of connection varying according to demand.
10
How: Use general-purpose NICs for line interfaces PCs bus & memory for switching fabric & buffering
Packet is read in from a port into memory Processor decides where to forward the packet Processor sends packet to appropriate outgoing NIC
Copyright 2003, Tim Moors
Main memory
Interface 3
11
12
1c
3b 4a
a b c d
1c
3b 4a
a b c d
Slots carry constant -length segments of payload. Slots dont contain headers with addressing information numbers/letters/& in this figure are for illustrative purposes only rank of numbers indicates order of arrival rank of letters indicates order of departure Slots propagate left to right.
Differing numbers of slots on TSI input and output lines reflect different propagation delays. In practice, these lines could have 0 propagation delay, e.g. include mux&demux in switch.
Copyright 2003, Tim Moors
Incoming slots are buffered Switch is preprogrammed (by order of linked list) to know how to switch slots, e.g. Phase: red dashed lines point to the next slot (or port for accessing that slot) to leave each device.
Copyright 2003, Tim Moors
every 4th slot (1c, 1c, 1c) is destined to port c the slot after that (2d, 2d, 2d) is destined to port d
13
14
Incoming traffic is appended to the end of the list for the required output port Single memory:
Allows statistical gain: busy port can use memory not being used by an idle port Helps multicasting: Stored once in memory for multiple outputs (multiple links to payload)
Copyright 2003, Tim Moors
15
17
18
RTL8308
2MB DRAM 32K x 64b @ 50MHz 256B pages Store-and-forward + cut-through operation Address matching: 1. addresses are hashed to index the 8K lookup table. 2. Hash bash handled by storing colliding addresses in CAM
[Realtek 8308 datasheet]
Copyright 2003, Tim Moors
Video RAM
CPU can randomly access DRAM Access to DRAM is shared between CPU and cache(s) Cache(s): access DRAM one complete row at a time can be accessed independently of DRAM, e.g. to feed video raster Application to network switches: ports access caches achieve switching by using DRAM to transfer between caches & for buffering
19
20
Locating buffering
On the topic of memory, but looking forward: Buffers can be located at: Input ports: Reliance on simple FIFO input buffers leads to head-of-line blocking:
Output ports: Reliance on output requires fast switch and buffers Within the switch fabric
Copyright 2003, Tim Moors Copyright 2003, Tim Moors
21
22
Space-division advantage: Internal port cost Port costs can dominate costs, but ideally it is the external port costs, which are inevitable, that dominate.