ch 8. switching. switch devices that interconnected with each other connecting all nodes (like...

35
Ch 8. Switching

Upload: arnold-lewis

Post on 19-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Ch 8. Switching

Page 2: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Switch Devices that interconnected with each other

Connecting all nodes (like mesh network) is not cost-effective

Some topology like bus has limitation on distance Switched network, where end systems (e.g., A, B,

… J) are connected through switches (e.g., I, II, … V)

Page 3: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Taxonomy of Switched Networks

Telephone system

The Internet (IP)

Page 4: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Circuit-Switched Networks A set of switches are connected by physical

links Each link is divided into n channels using FDM or

TDM Each connection has one dedicated channel

Example (n = 3)

Page 5: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Circuit Switching Resources (channels, switch buffer, switch

processing time, switch ports, etc) must be reserved before communication, and released after communication

Three phases Setup – establish a connection and reserve the

resources for communication Data transfer – do communication Teardown – finishing communication, release the

resources

Page 6: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Setup

Teardown

Page 7: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Example of Circuit-Switched Network Three switches are used to “route” 4

connections

Page 8: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Properties of Circuit-Switching Require resource reservation and release Data do not needed to be packetized No addressing is involved during data transfer Low efficiency

Reserved resources are unavailable to others Low delay

Except the setup delay for the resource reservation

Page 9: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Datagram Networks Messages pass through packet-switched

networks, without reserving resources Resources are allocated on demand

Data should be divided into small pieces, called packet or datagram

Each packet is treated independently of others Network has no idea about data stream

Often called, connectionless networks, since the switch does not keep information about the connection state

Page 10: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Example of Datagram Network

Page 11: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Routing How the switches route packets without

reserving resources? Each packet carries its destination address Each switch keep routing table, which is

dynamic and updated periodically Routing table

Specifies the output port of the switch for each destination address

Page 12: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Properties of Packet-Switching Resources are allocated on demand Data should be packetized, and each packet

should include its destination address High efficiency – more multiplexing High delay

Page 13: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Recall the Taxonomy

Telephone system

The Internet (IP)

Page 14: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Virtual-Circuit Networks Can be regarded as a blend of both a circuit-

switched network and a datagram network Three phases: setup, transfer, and teardown Resources can be reserved at setup, or allocated

on demand Data are packetized and each packet carries an

address Normally, switches are implemented at

physical layer - Circuit-switched networks network layer - Packet-switched networks data link layer - Virtual-circuit networks

Page 15: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Addressing Two-level addressing

Global addressing – address is unique over networks

Virtual-circuit identifier (VCI, local addressing) – used by a frame between two switches

Page 16: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Routing Table Routing using (port, VCI)

Page 17: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

End-to-end Data Transfer

Page 18: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Connection Setup (1) Request (source destination)

How does switch 1 know it should go to port 3? This will be covered later

Page 19: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Connection Setup (2) Acknowledgement (destination source)

Page 20: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Properties of VC Switching Three phases

Setup Data transfer – all packets belonging to the same

source and destination travel the same path Teardown – the similar method as setup (i.e.,

request and confirm) Efficiency and delay

Depends on whether resources are either reserved during the setup, or allocated on demand

Advantage The source can check availability of the resources,

without actually reserving it.

Page 21: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Structure of a Switch Switches are used in both circuit-switched and

packet-switched networks Circuit switch

Space-division switch: paths in the circuit are separated from one another spatially

Time-division switch: internally uses time-division multiplexing (TDM)

Packet Switch

Page 22: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Space-Division Switch (1) Crossbar Switch

Connect n inputs to m outputs in a grid Switch with too many crosspoints is impractical

and inefficient

Page 23: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Space-Division Switch (2) Multi-stage Switch

Combine crossbar switches in several stages (usually three)

Ex: number of crosspoints? N/n (n x k) + k (N/n x N/n) + N/n (k x n) = 2kN + k(N/n)2

This is much smaller than single-stage crossbar: N2

Page 24: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Space-Division Switch (3) Blocking – problem of multistage switch

Under heavy traffic, resources (i.e., crosspoints) are limited, if many users want a connection at the same time

Blocking refers to times when one input cannot be connected to an output due to no available path

Can we avoid blocking? Clos criterion: n = (N/2)1/2, k > 2n-1 Number of crosspoitns ≥ 4N ((2N)1/2 – 1) This is still huge, though less than N2

Page 25: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Time-Division Switch Time-Slot Interchange (TSI)

TDM muxer, demuxer TSI with Random Access Memory (RAM)

To support inputs continuously, TSI should operate at a faster rate – speed-up

Page 26: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Time- and Space-Division Switch Space-division requires many cross-points Time-division requires speed-up (or delay if

store in the switch) Time-space-time (TST) switch

Page 27: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Packet Switches Components:

Input port, routing processor, switching fabric, output port

Page 28: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Packet Switch Structure (1) Input port performs the physical and data

link functions: decapsulates packet from the frame, detects/corrects errors, and store packets at its queue

Output port performs the same function of the input port, but in the reverse order

Page 29: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Packet Switch Structure (2) Routing processor performs the functions of

the network layer: finds the output port number by looking up the routing table (table lookup)

Switching fabrics move packets from the input queue to the output queue Crossbar Banyan Batch-Banyan

Page 30: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Banyan Switch

Multistage switch with many 2x2 micro-switches log2 n stages, n/2 micro-switches at each stage Packets are automatically routed to the destination

using the binary expression of the destination address

Banyan tree from dailycognition.co

m

Page 31: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Banyan Switch Micro-switch (2x2)

A packet has a control bit, 0 or 1 The packet goes up if the control bit is 0 The packet goes down if the control bit is 1

0

01

1

0

1

0 or 1

0 or 1

Page 32: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Banyan Switch Two examples

Left figure: packet to output 6 (= 110) Right figure: packet to output 2 (= 010)

Control bit at 1st stageControl bit at 2nd stageControl bit at 3rd

stage

Page 33: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Banyan Switch First bit determines the block of the next stage

Two blocks are separated First bit indicates which block the packet should go Procedure repeats at the next stage with the next bit

Page 34: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Batcher-Banyan Switch Collision of packets even for a different dest.

At port 0, to dest. 4 (100) At port 6, to dest. 5 (101)

Pre-sorting can solve the problem E.g., the second packet arrives at port 1

Batcherswitch doesthe sorting

Collision

Page 35: Ch 8. Switching. Switch  Devices that interconnected with each other  Connecting all nodes (like mesh network) is not cost-effective  Some topology

Homework Exercise in Chap. 8

13 18 22 23