N outputs N inputs Switch ... ... A - - PowerPoint PPT Presentation

n outputs n inputs switch a switch moves a packet from an
SMART_READER_LITE
LIVE PREVIEW

N outputs N inputs Switch ... ... A - - PowerPoint PPT Presentation

N outputs N inputs Switch ... ... A switch moves a packet from an input port to an output port Forwarding -- output port selection Switching -- actually transferring the


slide-1
SLIDE 1

ECPE/CS 5516 (02/21/2000) Packet and Cell Switching: Forwarding and Routing - 1

Switch

... ...

N inputs N outputs

  • ■ A “switch” moves a packet from an input

port to an output port

  • Forwarding -- output port selection
  • Switching -- actually transferring the packet
  • Routing -- deciding how to forward

■ Scalable, largely without limits to …

  • Number of hosts
  • Geographic areas
slide-2
SLIDE 2

ECPE/CS 5516 (02/21/2000) Packet and Cell Switching: Forwarding and Routing - 2

  • ■ Selection of output port determines routing

and is based on information in packet header

  • Destination address
  • Path or circuit identifier
  • Port specification

■ Routing … Where? When?

  • Source routing
  • Virtual circuit switching or routing
  • Datagram routing
slide-3
SLIDE 3

ECPE/CS 5516 (02/21/2000) Packet and Cell Switching: Forwarding and Routing - 3

  • ■ Routing decisions are made at each switch

as each packet is processed

  • Connectionless
  • Requires full address information be carried in

packet header

■ Switch must make routing decisions, so it

must know something about the network topology

slide-4
SLIDE 4

ECPE/CS 5516 (02/21/2000) Packet and Cell Switching: Forwarding and Routing - 4

  • 1

2 3 1 2 3 1 2 3

Source (A) Dest (B) B

1 2 3 1 2 3 1 2 3

B B B Routing Table

dest

A

  • ut

3 B 2 ... ...

dest

A

  • ut

1 B ... ...

slide-5
SLIDE 5

ECPE/CS 5516 (02/21/2000) Packet and Cell Switching: Forwarding and Routing - 5

  • ■ No setup is required, so source can transmit

packets immediately

■ Packet is transmitted “into the night”

  • Is a path available?
  • Is the destination available?

■ Each packet is routed independently

  • Network can route around failed or congested

links

  • Out of order delivery is possible

■ Header must contain full address ■ Used in Internet Protocol (IP)

slide-6
SLIDE 6

ECPE/CS 5516 (02/21/2000) Packet and Cell Switching: Forwarding and Routing - 6

  • ■ Routing decisions are made at the source

node when the packet is transmitted

■ Source selects route

  • Must have information about the network

topology

  • This capability does not scale -- limits the use of

source routing

■ Source indicates route in the packet header

contains route information

  • Information can be used by the destination to

route return packets along the reverse path

slide-7
SLIDE 7

ECPE/CS 5516 (02/21/2000) Packet and Cell Switching: Forwarding and Routing - 7

  • 1

2 3 1 2 3 1 2 3

Source Dest 2 0 3 0 3 2 3 2 0

slide-8
SLIDE 8

ECPE/CS 5516 (02/21/2000) Packet and Cell Switching: Forwarding and Routing - 8

  • ■ Routing decisions are made at each switch

(or, possibly, at a source) when a connection is established

  • Explicit connection
  • Explicit disconnect (“tear down”)

■ All packets that are part of the connection

follow the same path

  • Connection-oriented

■ Each switch maintains a VC (virtual circuit)

table

  • Maps (input port,VC identifier) to

(output port, VC identifier)

slide-9
SLIDE 9

ECPE/CS 5516 (02/21/2000) Packet and Cell Switching: Forwarding and Routing - 9

  • 1

2 3 1 2 3 1 2 3

Source Dest 2

1 2 3 1 2 3 1 2 3

5 4 5

in vci out vci

3 2 2 5 VC Table

in vci out vci

1 5 4 VC Table

slide-10
SLIDE 10

ECPE/CS 5516 (02/21/2000) Packet and Cell Switching: Forwarding and Routing - 10

  • ■ Setup must occur before data is sent (for

reliability, at least)

  • RTT delay occurs before first packet can be sent
  • Overhead for connection setup

■ Virtual circuit identifier (VCI)

  • Changed on a link-by-link basis
  • Must be unique to a particular input port on a

particular switch

  • Placed in header, but can be quite small

■ Resources can be allocated during setup

  • Supports quality of service (QoS)

■ Virtual circuit routing is used in ATM

slide-11
SLIDE 11

ECPE/CS 5516 (02/21/2000) Packet and Cell Switching: Forwarding and Routing - 11

  • ■ Contention versus congestion
  • Contention occurs when two or more packets

need to be transmitted on the same outgoing link

  • Congestion occurs when the switch is so busy

that its buffers fill (or overflow)

■ Forwarding versus routing

  • Forwarding is the process of looking at a packet,

consulting a table, and sending the packet on the appropriate output port -- easy to do

  • Routing is the process of building the

forwarding tables -- much harder to do, especially well