Presentation is loading. Please wait.

Presentation is loading. Please wait.

TO 3-7-06 p. 1 Spring 2006 EE 5304/EETS 7304 Internet Protocols Tom Oh Dept of Electrical Engineering Lecture 9 Routers, switches.

Similar presentations


Presentation on theme: "TO 3-7-06 p. 1 Spring 2006 EE 5304/EETS 7304 Internet Protocols Tom Oh Dept of Electrical Engineering Lecture 9 Routers, switches."— Presentation transcript:

1 TO 3-7-06 p. 1 Spring 2006 EE 5304/EETS 7304 Internet Protocols Tom Oh Dept of Electrical Engineering taehwan@engr.smu.edu Lecture 9 Routers, switches

2 TO 3-7-06 p. 2 First Generation Routers Fabric = shared bus All packets go over shared bus into main memory for centralized processing

3 TO 3-7-06 p. 3 First Generation Routers (cont)  Packets are transferred over bus to main memory and CPU for processing, then to output queues  Packet processing in software  Bottlenecks  Mainly centralized packet processing by CPU  Shared bus is inefficient (each packet takes two times on bus) but not slow compared to CPU

4 TO 3-7-06 p. 4 Second Generation Routers  Distribute portion of routing table to a cache at each input line card  Cache hits: packet goes through bus directly to output queue  Cache miss: packet goes to CPU for processing as before  Shared bus is still bottleneck

5 TO 3-7-06 p. 5 Third Generation Routers Forwarding path works at line speed and separate from control plane Switch fabric is highly parallel to transfer multiple packets simultaneously

6 TO 3-7-06 p. 6 Third Generation Routers (cont)  Shared bus replaced by space-division switch fabric for higher throughput  Borrow switching techniques from ATM switching  Complete separation of CPU into routing engine (building routing table and running routing protocol) and packet forwarding engine (packet processing and routing)  Full routing info. in line cards  Faster address lookup algorithms  Application specific integrated circuits (ASICs) for faster packet processing, to work at “line speed”

7 TO 3-7-06 p. 7 Fourth Generation Routers  Data plane is optical  Control plane is electronic  Packet headers must be processed electronically  Ultimate goal is all-optical network

8 TO 3-7-06 p. 8 ATM Switching Origins  Packet speech research (late 1970s - early 1980s) found packet switching for voice, but only if protocols and switches are modified  X.25 and IP were designed for data and unsuited for packet speech  Fast packet switching: streamlined or "lightweight" protocol for high speed packet processing in hardware  Assumes reliable, high rate digital transmission facilities - then minimal error control necessary  Should be suitable for both real-time traffic (eg, speech) and nonreal-time data

9 TO 3-7-06 p. 9 ATM Switching Origins (cont)  Fast packet switching is not a particular protocol, but a set of principles designed to minimize packet delays and maximize switch throughput  Minimal error control (no ACKs or retransmissions) Error control can be done at higher layers if needed  Connection oriented (virtual circuits)  Main function of packet header is identify VC  Fast packet switches use highly parallel hardware processing to minimize delay and maximize throughput

10 TO 3-7-06 p. 10 ATM Switching Origins (cont)  Packets should be much shorter compared to IP or X.25 (eg. max. 144 bytes of info.)  Shorter than normal data packets to minimize packetization delay (time to fill packet with speech data) and queueing delays  Packets can be variable length or fixed length, but fixed length packets simplify switch design and achieve better pipelining performance

11 TO 3-7-06 p. 11 Fast Packet Switch - Example Control processor (software): handles connection setups, connection admission control, operations and network management

12 TO 3-7-06 p. 12 Fast Packet Switch - Example (cont) Input port processors (hardware): processes incoming packets at line speed, discard packets with header bit errors, looks up virtual circuit numbers in routing table, passes data packets to fabric and control packets to CP

13 TO 3-7-06 p. 13 Fast Packet Switch - Example (cont) Switch fabric (hardware): transfers multiple incoming packets in parallel to output ports, may contain buffering to resolve contentions, may handle packets with priorities

14 TO 3-7-06 p. 14 Fast Packet Switch - Example (cont) Output port processors (hardware): recomputes packet header fields as needed

15 TO 3-7-06 p. 15 Fast Packet Switch - Example (cont) Packet forwarding path is hardware and parallelized Software handles control and management functions on slower timescale

16 TO 3-7-06 p. 16 ATM Switching  ATM is result of fast packet switching research, standardized by ITU in 1988  Short, fixed length cells (packets): 5-byte header + 48-byte payload  ATM switches based on fast packet switching principles  Based on fast packet switching principles  Most switch architectures differ in design of switch fabric

17 TO 3-7-06 p. 17 ATM Switching (cont)  Cell header is primarily to identify virtual circuit number (VPI/VCI) at UNIat NNI GFCVPI VCI PT HEC 48-byte data CLP VPI VCI PT HEC 48-byte data CLP 8 bits

18 TO 3-7-06 p. 18 ATM Switching (cont) Input port processors: receive physical layer signal, extract ATM cells

19 TO 3-7-06 p. 19 ATM Switching (cont) Cell processing: discard cells with header bit errors, look up VPI/VCI in routing table, may add “routing tag” to cell

20 TO 3-7-06 p. 20 ATM Switching (cont) Switch fabric: routes cells to output queues

21 TO 3-7-06 p. 21 ATM Switching (cont) Output queues: buffers cells waiting for transmission, discard cells with CLP=1 if overflow

22 TO 3-7-06 p. 22 ATM Switching (cont) Output port processing: physical transmission

23 TO 3-7-06 p. 23 ATM Switch Fabrics - Typical Designs  Space division, e.g., banyan network, Batcher- banyan, Starlite  Shared medium, eg, TDM bus  Shared memory  Fully interconnected, eg., bus matrix, knockout switch

24 TO 3-7-06 p. 24 Space Division Switches  Banyan networks 8x8 banyan is constructed by interconnecting 4x4 banyans 4x4 banyan is constructed by interconnecting 2x2 modules 8 incoming cells are pipelined together through the fabric stages

25 TO 3-7-06 p. 25 Space Division Switches (cont)  Class of multistage interconnection networks (MINs) with self-routing property  Each cell carries the control information for its route to output  Simple, regular structure, simple 2x2 switching elements → easy for hardware implementation  NxN needs only N/2 log N switching elements  All hardware at same speed as port speed  Modular: easy to construct larger fabrics

26 TO 3-7-06 p. 26 Space-Division Switches (cont)  Self-routing

27 TO 3-7-06 p. 27 Space Division Switches (cont)  Internally blocking: two cells going to different outputs may collide on same internal link  For uniform random traffic, throughput is low (about 0.4 for N=32)  Approaches: internal buffering (doesn’t improve throughput much), internal speedup (about 4 factor to achieve near full utilization?)

28 TO 3-7-06 p. 28 Space Division Switches (cont)  Add Batcher sorting network: sorts cells according to destination addresses

29 TO 3-7-06 p. 29 Space Division Switches (cont)  Batcher-banyan network is internally nonblocking but doesn’t solve output contention: two cells going to same output port at same time  Approach 1: input buffers allow one cell to each output at a time and queue others  For uniform random traffic, throughput is 0.586 (general result for input buffering)  Cause is HOL (head of line) blocking: output contention lets one cell go to output and another cell must stay in input buffer; this keeps cells in queue behind it from going to a free output port

30 TO 3-7-06 p. 30 Space Division Switches (cont)  Approach 2: (Starlite switch) trap conflicting cells (going to same output port) after Batcher sorter and recirculate these cells through a shared buffer to try again through Batcher

31 TO 3-7-06 p. 31 Space Division Switches (cont)  Sharing buffer reduces total amount of buffer required  Need to expand Batcher fabric and add trap network  Need to keep track of number of reattempts of each cell to maintain proper cell sequence

32 TO 3-7-06 p. 32 Shared Medium Switches  High speed TDM bus

33 TO 3-7-06 p. 33 Shared Medium Switches (cont)  High speed TDM bus

34 TO 3-7-06 p. 34 Shared Medium Switches (cont)  Cells at N inputs take round robin turns to broadcast on bus  Address filter at each output detects cells addressed to that output port  Output buffer at each output  To be nonblocking, bus must be N times faster than input and output port rates (speedup factor of N)  Address filters and buffers work at bus speed  Simple, modular design, with moderate buffer requirements

35 TO 3-7-06 p. 35 Shared Memory Switches

36 TO 3-7-06 p. 36 Shared Memory Switches (cont)  Virtual operation

37 TO 3-7-06 p. 37 Shared Memory Switches (cont)  Cells at N inputs take round robin turns to be written into central shared memory  Then read out to appropriate output port; read addresses are kept as linked lists  Buffer sharing → minimal amount of buffers required  N is limited by memory access speed (speedup factor of N again)

38 TO 3-7-06 p. 38 Fully Interconnected Switches  Bus matrix switch

39 TO 3-7-06 p. 39 Fully Interconnected Switches  Bus matrix switch

40 TO 3-7-06 p. 40 Fully Interconnected Switches (cont)  Each input cell is broadcast to every output  Each output multiplexes N buffers (one buffer for each input port), each with an address filter  No speedup factor (everything works at speed of input and output port rates) and no blocking  Expensive in buffers and address filters: grow by N2, and each bus has N crosspoints → limit N


Download ppt "TO 3-7-06 p. 1 Spring 2006 EE 5304/EETS 7304 Internet Protocols Tom Oh Dept of Electrical Engineering Lecture 9 Routers, switches."

Similar presentations


Ads by Google