Packet Switching Guevara Noubir Fundamentals of Computer - - PowerPoint PPT Presentation

packet switching
SMART_READER_LITE
LIVE PREVIEW

Packet Switching Guevara Noubir Fundamentals of Computer - - PowerPoint PPT Presentation

Packet Switching Guevara Noubir Fundamentals of Computer Networks Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 3. Fundamentals of Computer Networks Packet


slide-1
SLIDE 1

Packet ¡Switching ¡

Guevara ¡Noubir ¡ Fundamentals ¡of ¡Computer ¡Networks ¡

Fundamentals of Computer Networks Packet Switching

Textbook: Computer Networks: A Systems Approach,

  • L. Peterson, B. Davie, Morgan Kaufmann

Chapter 3.

slide-2
SLIDE 2

Outline ¡

Store-­‑and-­‑Forward ¡Switches ¡ Cell ¡Switching ¡ Segmenta?on ¡and ¡Reassembly ¡ Bridges ¡and ¡Extended ¡LANs ¡ ¡ Switch ¡Design ¡ ¡

Fundamentals of Computer Networks Packet Switching

slide-3
SLIDE 3

Scalable ¡Networks ¡ ¡

  • Switch ¡

– Forwards ¡packets ¡from ¡input ¡port ¡to ¡output ¡port ¡ – Port ¡selected ¡based ¡on ¡address ¡in ¡packet ¡header ¡

  • Virtual ¡circuit ¡(connec?on-­‑oriented) ¡vs. ¡Datagram ¡(connec?onless) ¡
  • Advantages ¡ ¡

– Cover ¡large ¡geographic ¡area ¡(tolerate ¡latency) ¡ – Support ¡large ¡numbers ¡of ¡hosts ¡(scalable ¡bandwidth) ¡

Fundamentals of Computer Networks Packet Switching

Input ports T3 T3 STS-1 T3 T3 STS-1 Switch Output ports

slide-4
SLIDE 4

Virtual ¡Circuit ¡(VC) ¡Switching ¡

  • Explicit ¡connec?on ¡setup ¡(and ¡tear-­‑down) ¡phase ¡
  • Subsequent ¡packets ¡follow ¡same ¡circuit ¡
  • Some?mes ¡called ¡connec%on-­‑oriented ¡model ¡

Fundamentals of Computer Networks Packet Switching 1 3 2 1 3 2 1 3 2 5 11 4 7 Switch 3 Host B Switch 2 Host A Switch 1

  • Analogy: phone call
  • Each switch maintains a VC table w/

entries: input VCI, output VCI, input port, output port

slide-5
SLIDE 5

Virtual ¡Circuit ¡Switching ¡

  • Connec?on ¡Setup ¡approaches: ¡

– Permanent ¡Virtual ¡Circuits ¡(PVC): ¡manually ¡setup/removed ¡by ¡network ¡ administrators ¡ – Switched ¡Virtual ¡Circuits ¡(SVC): ¡dynamically ¡setup ¡through ¡signaling ¡over ¡ some ¡control ¡channels ¡

  • Connec?on ¡state ¡=> ¡VC ¡table ¡

– Incoming ¡interface, ¡VC ¡Iden?fier ¡(VCI), ¡outgoing ¡interface, ¡outgoing ¡VCI ¡

  • SVC: ¡ ¡

– The ¡setup ¡message ¡is ¡forwarded ¡over ¡the ¡network ¡ – New ¡entries ¡are ¡created ¡in ¡the ¡VC ¡table ¡and ¡des?na?on ¡switches ¡choose ¡ incoming ¡VCI ¡ – When ¡the ¡setup ¡message ¡reaches ¡the ¡des?na?on, ¡connec?on ¡ acknowledgements ¡and ¡chosen ¡VCI ¡are ¡communicated ¡back ¡to ¡the ¡source ¡

Fundamentals of Computer Networks Packet Switching

slide-6
SLIDE 6

Virtual ¡Circuits ¡

  • Examples ¡of ¡Virtual ¡Circuit ¡Technology: ¡

– Frame ¡Relay, ¡X.25, ¡Asynchronous ¡Transfer ¡Mode ¡(ATM) ¡

  • Frame ¡Relay ¡was ¡popular ¡for ¡crea?ng ¡virtual ¡private ¡

networks ¡(VPNs) ¡using ¡PVC. ¡

  • ATM ¡is ¡a ¡more ¡complex ¡technology ¡that ¡provides ¡

mechanisms ¡for ¡suppor?ng ¡quality ¡of ¡service ¡

– More ¡success ¡in ¡Wide ¡Area ¡Networks, ¡DSL ¡but ¡not ¡on ¡LAN ¡

Fundamentals of Computer Networks Packet Switching

slide-7
SLIDE 7

Datagram ¡Switching ¡

  • No ¡connec?on ¡setup ¡phase ¡
  • Each ¡packet ¡forwarded ¡independently ¡ ¡
  • Some?mes ¡called ¡connec%onless ¡model ¡

Fundamentals of Computer Networks Packet Switching

1 3 2 1 3 2 1 3 2 Switch 3 Host B Switch 2 Host A Switch 1 Host C Host D Host E Host F Host G Host H

  • Analogy: postal

system

  • Each switch

maintains a forwarding (routing) table

slide-8
SLIDE 8

Source ¡Rou?ng ¡

  • The ¡informa?on ¡to ¡route ¡the ¡packet ¡is ¡provided ¡by ¡the ¡source ¡host ¡

and ¡included ¡in ¡the ¡packet ¡

  • Example ¡of ¡implemen?ng ¡source ¡rou?ng: ¡

– Assign ¡a ¡number ¡to ¡each ¡switch ¡output ¡port ¡ – Include ¡the ¡list ¡of ¡output ¡ports ¡that ¡the ¡packet ¡has ¡to ¡go ¡through ¡ – The ¡list ¡is ¡rotated ¡by ¡the ¡intermediate ¡switches ¡before ¡forwarding ¡

  • Disadvantage: ¡

– Packet ¡ini?ators ¡need ¡to ¡have ¡a ¡sufficient ¡informa?on ¡about ¡the ¡network ¡ topology ¡ – The ¡header ¡has ¡a ¡variable ¡length ¡

Fundamentals of Computer Networks Packet Switching

slide-9
SLIDE 9

Source ¡Rou?ng ¡

Fundamentals of Computer Networks Packet Switching

slide-10
SLIDE 10

Virtual ¡Circuit ¡Model ¡

  • Typically ¡wait ¡full ¡RTT ¡for ¡connec?on ¡setup ¡before ¡sending ¡

first ¡data ¡packet. ¡

  • While ¡the ¡connec?on ¡request ¡contains ¡the ¡full ¡address ¡for ¡

des?na?on, ¡each ¡data ¡packet ¡contains ¡only ¡a ¡small ¡ iden?fier, ¡making ¡the ¡per-­‑packet ¡header ¡overhead ¡small. ¡

  • If ¡a ¡switch ¡or ¡a ¡link ¡in ¡a ¡connec?on ¡fails, ¡the ¡connec?on ¡is ¡

broken ¡and ¡a ¡new ¡one ¡needs ¡to ¡be ¡established. ¡

  • Connec?on ¡setup ¡provides ¡an ¡opportunity ¡to ¡reserve ¡
  • resources. ¡

Fundamentals of Computer Networks Packet Switching

slide-11
SLIDE 11

Datagram ¡Model ¡

  • There ¡is ¡no ¡round ¡trip ¡?me ¡delay ¡wai?ng ¡for ¡connec?on ¡setup; ¡

a ¡host ¡can ¡send ¡data ¡as ¡soon ¡as ¡it ¡is ¡ready. ¡

  • Source ¡host ¡has ¡no ¡way ¡of ¡knowing ¡if ¡the ¡network ¡is ¡capable ¡of ¡

delivering ¡a ¡packet ¡or ¡if ¡the ¡des?na?on ¡host ¡is ¡even ¡up. ¡

  • Since ¡packets ¡are ¡treated ¡independently, ¡it ¡is ¡possible ¡to ¡route ¡

around ¡link ¡and ¡node ¡failures. ¡

  • Successive ¡packets ¡may ¡follow ¡different ¡paths ¡and ¡be ¡received ¡
  • ut ¡of ¡order. ¡
  • Since ¡every ¡packet ¡must ¡carry ¡the ¡full ¡address ¡of ¡the ¡

des?na?on, ¡the ¡overhead ¡per ¡packet ¡is ¡higher ¡than ¡for ¡the ¡ connec?on-­‑oriented ¡model. ¡

Fundamentals of Computer Networks Packet Switching

slide-12
SLIDE 12

Cell ¡Switching ¡(ATM) ¡

  • Connec?on-­‑oriented ¡packet-­‑switched ¡network ¡
  • Used ¡in ¡both ¡WAN ¡and ¡LAN ¡se^ngs ¡
  • Signaling ¡(connec?on ¡setup) ¡Protocol: ¡Q.2931 ¡
  • Specified ¡by ¡ATM ¡forum ¡(www.atmforum.com) ¡
  • Packets ¡are ¡called ¡cells ¡

– 5-­‑byte ¡header ¡+ ¡48-­‑byte ¡payload ¡

  • Commonly ¡transmifed ¡over ¡SONET ¡

(Synchronous ¡Op?cal ¡NETwork) ¡

– other ¡physical ¡layers ¡possible: ¡SDH, ¡Wireless, ¡DSL ¡

Fundamentals of Computer Networks Packet Switching

slide-13
SLIDE 13

Variable ¡vs ¡Fixed-­‑Length ¡Packets ¡

  • No ¡Op?mal ¡Length ¡

– if ¡small: ¡high ¡header-­‑to-­‑data ¡overhead ¡ – if ¡large: ¡low ¡u?liza?on ¡for ¡small ¡messages ¡

  • Fixed-­‑Length ¡Easier ¡to ¡Switch ¡in ¡Hardware ¡

– simpler ¡ – enables ¡parallelism ¡ ¡

Fundamentals of Computer Networks Packet Switching

slide-14
SLIDE 14

Big ¡vs ¡Small ¡Packets ¡

  • Small ¡Improves ¡Queue ¡behavior ¡ ¡

– finer-­‑grained ¡pre-­‑emp?on ¡point ¡for ¡scheduling ¡link ¡

  • maximum ¡packet ¡= ¡4KB ¡
  • link ¡speed ¡= ¡100Mbps ¡
  • transmission ¡?me ¡= ¡4096 ¡x ¡8/100 ¡= ¡327.68us ¡
  • high ¡priority ¡packet ¡may ¡sit ¡in ¡the ¡queue ¡327.68us ¡
  • in ¡contrast, ¡53 ¡x ¡8/100 ¡= ¡4.24us ¡for ¡ATM ¡

– near ¡cut-­‑through ¡behavior ¡ ¡

  • two ¡4KB ¡packets ¡arrive ¡at ¡same ¡?me ¡
  • link ¡idle ¡for ¡327.68us ¡while ¡both ¡arrive ¡
  • at ¡end ¡of ¡327.68us, ¡s?ll ¡have ¡8KB ¡to ¡transmit ¡ ¡
  • in ¡contrast, ¡can ¡transmit ¡first ¡cell ¡amer ¡4.24us ¡
  • at ¡end ¡of ¡327.68us, ¡just ¡over ¡4KB ¡lem ¡in ¡queue ¡ ¡

Fundamentals of Computer Networks Packet Switching

slide-15
SLIDE 15

Big ¡vs ¡Small ¡(cont) ¡

  • Small ¡Improves ¡Latency ¡(for ¡voice) ¡ ¡

– voice ¡digitally ¡encoded ¡at ¡64Kbps ¡(8-­‑bit ¡samples ¡at ¡ 8KHz) ¡ – need ¡full ¡cell’s ¡worth ¡of ¡samples ¡before ¡sending ¡cell ¡ – example: ¡1000-­‑byte ¡cells ¡implies ¡125ms ¡per ¡cell ¡(too ¡ long) ¡ – smaller ¡latency ¡implies ¡no ¡need ¡for ¡echo ¡cancellers ¡ ¡

  • ATM ¡Compromise: ¡48 ¡bytes ¡= ¡(32+64)/2 ¡

Fundamentals of Computer Networks Packet Switching

slide-16
SLIDE 16

Cell ¡Format ¡

  • User-­‑Network ¡Interface ¡(UNI) ¡ ¡

– host-­‑to-­‑switch ¡format ¡ ¡ – GFC: ¡Generic ¡Flow ¡Control ¡(not ¡used) ¡ – VCI: ¡Virtual ¡Circuit ¡Iden?fier ¡ – VPI: ¡Virtual ¡Path ¡Iden?fier ¡ – Type: ¡management, ¡conges?on ¡control, ¡AAL5 ¡(later) ¡ – CLPL ¡Cell ¡Loss ¡Priority ¡ ¡ – HEC: ¡Header ¡Error ¡Check ¡(CRC-­‑8) ¡

  • Network-­‑Network ¡Interface ¡(NNI) ¡

– switch-­‑to-­‑switch ¡format ¡ – GFC ¡becomes ¡part ¡of ¡VPI ¡field ¡

Fundamentals of Computer Networks Packet Switching GFC HEC (CRC-8) 4 16 3 1 8 VPI VCI CLP Type Payload 384 (48 bytes) 8

slide-17
SLIDE 17

Segmenta?on ¡and ¡Reassembly ¡ ¡

  • ATM ¡Adapta?on ¡Layer ¡(AAL) ¡

– AAL ¡1 ¡(CBR) ¡and ¡2 ¡(VBR) ¡designed ¡for ¡applica?ons ¡that ¡ need ¡guaranteed ¡rate ¡(e.g., ¡voice, ¡video) ¡ – AAL ¡3/4 ¡designed ¡for ¡packet ¡data ¡ – AAL ¡5 ¡is ¡an ¡alterna?ve ¡standard ¡for ¡packet ¡data. ¡ Designed ¡by ¡the ¡computer ¡industry. ¡Most ¡used ¡ interface ¡to ¡ATM. ¡

Fundamentals of Computer Networks Packet Switching

AAL A TM AAL A TM

… …

slide-18
SLIDE 18

Fundamentals of Computer Networks Packet Switching

slide-19
SLIDE 19

AAL ¡3/4 ¡

  • Convergence ¡Sublayer ¡Protocol ¡Data ¡Unit ¡(CS-­‑

PDU) ¡

– CPI: ¡common ¡part ¡indicator ¡(version ¡field: ¡currently ¡0) ¡ – Btag/Etag:beginning ¡and ¡ending ¡tag ¡ – BAsize: ¡hint ¡on ¡amount ¡of ¡buffer ¡space ¡to ¡allocate ¡ ¡ – Length: ¡size ¡of ¡whole ¡PDU ¡

Fundamentals of Computer Networks Packet Switching

slide-20
SLIDE 20

Cell ¡Format ¡ ¡

– Type ¡

  • BOM: ¡beginning ¡of ¡message ¡ ¡
  • COM: ¡con?nua?on ¡of ¡message ¡
  • EOM ¡end ¡of ¡message ¡

– SEQ: ¡sequence ¡number ¡ ¡ – MID: ¡message ¡id ¡ – Length: ¡number ¡of ¡bytes ¡of ¡PDU ¡in ¡this ¡cell ¡

Fundamentals of Computer Networks Packet Switching

slide-21
SLIDE 21

AAL5 ¡

  • CS-­‑PDU ¡Format ¡

– pad ¡so ¡trailer ¡always ¡falls ¡at ¡end ¡of ¡ATM ¡cell ¡ – Length: ¡size ¡of ¡PDU ¡(data ¡only) ¡ – CRC-­‑32 ¡(detects ¡missing ¡or ¡misordered ¡cells) ¡

  • Cell ¡Format ¡

– end-­‑of-­‑PDU ¡bit ¡in ¡Type ¡field ¡of ¡ATM ¡header ¡

Fundamentals of Computer Networks Packet Switching

slide-22
SLIDE 22

Bridges ¡and ¡Extended ¡LANs ¡

  • LANs ¡have ¡physical ¡limita?ons ¡(e.g., ¡2500m) ¡
  • Connect ¡two ¡or ¡more ¡LANs ¡with ¡a ¡bridge ¡

– Accept ¡and ¡forward ¡strategy ¡ – Level ¡2 ¡connec?on ¡(does ¡not ¡add ¡packet ¡header) ¡

  • Ethernet ¡Switch ¡is ¡a ¡LAN ¡Switch ¡= ¡Bridge ¡

Fundamentals of Computer Networks Packet Switching A Bridge B C X Y Z Port 1 Port 2

slide-23
SLIDE 23

Learning ¡Bridges ¡ ¡

  • Do ¡not ¡forward ¡when ¡unnecessary ¡
  • Maintain ¡forwarding ¡table ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Host ¡Port ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡A ¡1 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡B ¡1 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡C ¡1 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡X ¡2 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Y ¡2 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Z ¡2 ¡

  • Learn ¡table ¡entries ¡based ¡on ¡source ¡address ¡
  • Table ¡is ¡an ¡op?miza?on; ¡need ¡not ¡be ¡complete ¡
  • Always ¡forward ¡broadcast ¡frames ¡ ¡

Fundamentals of Computer Networks Packet Switching A Bridge B C X Y Z Port 1 Port 2

slide-24
SLIDE 24

Spanning ¡Tree ¡Algorithm ¡ ¡

  • Problem: ¡loops ¡
  • Bridges ¡run ¡a ¡distributed ¡spanning ¡tree ¡algorithm ¡ ¡

– select ¡which ¡bridges ¡ac?vely ¡forward ¡ – developed ¡by ¡Radia ¡Perlman ¡ – now ¡IEEE ¡802.1 ¡specifica?on ¡ ¡

Fundamentals of Computer Networks Packet Switching

B3 A C E D B2 B5 B B7 K F H B4 J B1 B6 G I

slide-25
SLIDE 25

Algorithm ¡Overview ¡ ¡

  • Each ¡bridge ¡has ¡unique ¡id ¡(e.g., ¡B1, ¡B2, ¡B3) ¡
  • Select ¡bridge ¡with ¡smallest ¡id ¡as ¡root ¡
  • Select ¡bridge ¡on ¡each ¡LAN ¡closest ¡to ¡root ¡as ¡

designated ¡bridge ¡(use ¡id ¡to ¡break ¡?es) ¡

Fundamentals of Computer Networks Packet Switching

B3 A C E D B2 B5 B B7 K F H B4 J B1 B6 G I

  • Each bridge forwards frames
  • ver each LAN for which it

is the designated bridge

slide-26
SLIDE 26

Algorithm ¡Details ¡

  • Bridges ¡exchange ¡configura?on ¡messages ¡

– id ¡for ¡bridge ¡sending ¡the ¡message ¡ – id ¡for ¡what ¡the ¡sending ¡bridge ¡believes ¡to ¡be ¡root ¡ bridge ¡ – distance ¡(hops) ¡from ¡sending ¡bridge ¡to ¡root ¡bridge ¡

  • Each ¡bridge ¡records ¡current ¡best ¡configura?on ¡

message ¡for ¡each ¡port ¡

  • Ini?ally, ¡each ¡bridge ¡believes ¡it ¡is ¡the ¡root ¡

Fundamentals of Computer Networks Packet Switching

slide-27
SLIDE 27

Algorithm ¡Detail ¡(cont) ¡

  • When ¡learn ¡not ¡root, ¡stop ¡genera?ng ¡config ¡messages ¡

– in ¡steady ¡state, ¡only ¡root ¡generates ¡configura?on ¡messages ¡

  • When ¡learn ¡not ¡designated ¡bridge, ¡stop ¡forwarding ¡config ¡

messages ¡

– in ¡steady ¡state, ¡only ¡designated ¡bridges ¡forward ¡config ¡messages ¡ ¡

  • Root ¡con?nues ¡to ¡periodically ¡send ¡config ¡messages ¡
  • If ¡any ¡bridge ¡does ¡not ¡receive ¡config ¡message ¡amer ¡a ¡

period ¡of ¡?me, ¡it ¡starts ¡genera?ng ¡config ¡messages ¡ claiming ¡to ¡be ¡the ¡root ¡

Fundamentals of Computer Networks Packet Switching

slide-28
SLIDE 28

Broadcast ¡and ¡Mul?cast ¡

  • Forward ¡all ¡broadcast/mul?cast ¡frames ¡

– On ¡all ¡ac?ve ¡ports ¡except ¡the ¡one ¡on ¡which ¡the ¡ frame ¡was ¡received ¡

  • Learn ¡when ¡no ¡group ¡members ¡downstream ¡ ¡
  • Accomplished ¡by ¡having ¡each ¡member ¡of ¡

group ¡G ¡send ¡a ¡frame ¡to ¡bridge ¡mul?cast ¡ address ¡with ¡G ¡in ¡source ¡field ¡ ¡

Fundamentals of Computer Networks Packet Switching

slide-29
SLIDE 29

Limita?ons ¡of ¡Bridges ¡

  • Do ¡not ¡scale ¡

– Spanning ¡tree ¡algorithm ¡does ¡not ¡scale ¡ – Broadcast ¡does ¡not ¡scale ¡

  • Do ¡not ¡accommodate ¡heterogeneity ¡
  • Cau?on: ¡beware ¡of ¡transparency ¡

– Bridged ¡LANs ¡do ¡not ¡always ¡behave ¡as ¡single ¡ shared ¡medium ¡LAN: ¡they ¡drop ¡packets ¡when ¡ congested, ¡higher ¡latency ¡

Fundamentals of Computer Networks Packet Switching

slide-30
SLIDE 30

Virtual ¡LANs ¡(VLAN) ¡

  • VLANs ¡are ¡used ¡to: ¡

– Increase ¡scalability: ¡reduce ¡broadcast ¡messages ¡ – Provide ¡some ¡basic ¡security ¡by ¡separa?ng ¡LANs ¡

  • VLANs ¡have ¡an ¡ID ¡(color). ¡ ¡
  • Bridges ¡insert ¡the ¡VLAN ¡ID ¡between ¡the ¡

ethernet ¡header ¡and ¡its ¡payload ¡

  • Packets ¡(unicast ¡and ¡mul?cast) ¡are ¡only ¡

forwarded ¡to ¡VLAN ¡with ¡the ¡same ¡ID ¡as ¡the ¡ source ¡VLAN ¡

Fundamentals of Computer Networks Packet Switching

slide-31
SLIDE 31

Design ¡of ¡Switches ¡ ¡

  • Design ¡goals: ¡Throughput, ¡Scalability, ¡Cost ¡
  • Throughput: ¡ ¡

– Is ¡not ¡equal ¡to ¡the ¡sum ¡of ¡speeds ¡of ¡input/output ¡links ¡ – Depends ¡also ¡on ¡packet ¡size ¡(some ¡opera?ons ¡have ¡to ¡ be ¡executed ¡for ¡all ¡packets ¡independently ¡of ¡their ¡ size): ¡packet ¡per ¡second ¡metric ¡ => ¡Throughput ¡is ¡a ¡func?on ¡of ¡traffic ¡

  • Scalability: ¡

– How ¡does ¡hardware ¡cost ¡increase ¡as ¡a ¡func?on ¡of ¡IN/ OUT ¡

Fundamentals of Computer Networks Packet Switching

slide-32
SLIDE 32

Ports ¡and ¡Fabrics ¡

  • Ports: ¡ ¡

– Func?ons: ¡Interface ¡with ¡links, ¡buffer ¡packets, ¡ maintain ¡tables ¡for ¡VCI ¡(incoming/outgoing ¡VCI) ¡ – FIFO ¡buffers ¡are ¡not ¡suitable ¡because ¡of ¡head-­‑of-­‑line ¡ blocking ¡ – QoS ¡policies ¡have ¡to ¡be ¡embedded ¡in ¡the ¡buffer ¡ management ¡(e.g., ¡scheduling, ¡discarding) ¡

  • Fabrics: ¡

– Func?on: ¡deliver ¡packet ¡to ¡the ¡right ¡output ¡

Fundamentals of Computer Networks Packet Switching

slide-33
SLIDE 33

Worksta?on-­‑Based ¡

  • Aggregate ¡bandwidth ¡ ¡

– 1/2 ¡of ¡the ¡I/O ¡bus ¡bandwidth ¡ ¡ – capacity ¡shared ¡among ¡all ¡hosts ¡connected ¡to ¡switch ¡ – example: ¡133MHz, ¡64 ¡bits ¡bus ¡=> ¡8Gbps/2 ¡=> ¡few ¡100MHz ¡ports ¡

Fundamentals of Computer Networks Packet Switching CPU Main memory I/O bus Interface 1 Interface 2 Interface 3

  • Packets-per-second

– must be able to switch small packets – 1000,000 packets-per- second is achievable for a PC – e.g., 64-byte packets implies 512Mbps which is too small for a switch

slide-34
SLIDE 34

Switching ¡Hardware ¡ ¡

  • Design ¡Goals ¡

– Throughput ¡(depends ¡on ¡traffic ¡model) ¡ – Scalability ¡(a ¡func?on ¡of ¡n) ¡

  • Ports ¡

– Circuit ¡management ¡(e.g., ¡map ¡VCIs, ¡route ¡datagrams) ¡ – Buffering ¡(input ¡and/or ¡output) ¡

  • Fabric ¡

– As ¡simple ¡as ¡possible ¡ – Some?mes ¡do ¡buffering ¡(internal) ¡ ¡

Fundamentals of Computer Networks Packet Switching Input port Input port Input port Input port Output port Output port Output port Output port Fabric

slide-35
SLIDE 35

Buffering ¡

  • Wherever ¡conten?on ¡is ¡possible ¡

– input ¡port ¡(contend ¡for ¡fabric) ¡ – internal ¡(contend ¡for ¡output ¡port) ¡ – output ¡port ¡(contend ¡for ¡link) ¡

  • Head-­‑of-­‑Line ¡Blocking ¡

– input ¡buffering: ¡avoid ¡FIFO ¡

Fundamentals of Computer Networks Packet Switching

slide-36
SLIDE 36

Crossbar ¡Switches ¡

Fundamentals of Computer Networks Packet Switching

slide-37
SLIDE 37

Knockout ¡Switch ¡

  • Example ¡crossbar ¡
  • Concentrator ¡

– select ¡ ¡l ¡ ¡of ¡n ¡packets ¡

  • 2x2 ¡switches ¡randomly ¡

select ¡a ¡winner ¡

  • Complexity ¡is ¡sill: ¡n2 ¡ ¡

Fundamentals of Computer Networks Packet Switching D 1 2 3 4 Outputs Inputs D D D D D D D D D D D D D

slide-38
SLIDE 38

Knockout ¡Switch ¡(cont) ¡

  • Output ¡Buffer ¡

Fundamentals of Computer Networks Packet Switching (c) Shifter Buffers (b) Shifter Buffers (a) Shifter Buffers

slide-39
SLIDE 39

Self-­‑Rou?ng ¡Fabrics ¡

  • Banyan ¡Network ¡

– constructed ¡from ¡simple ¡2 ¡x ¡2 ¡switching ¡elements ¡ – self-­‑rou?ng ¡header ¡afached ¡to ¡each ¡packet ¡ – elements ¡arranged ¡to ¡route ¡based ¡on ¡this ¡header ¡ – no ¡collisions ¡if ¡input ¡packets ¡sorted ¡into ¡ascending ¡order ¡ – complexity: ¡n ¡log2 ¡n ¡ ¡

Fundamentals of Computer Networks Packet Switching

slide-40
SLIDE 40

Self-­‑Rou?ng ¡Fabrics ¡(cont) ¡

  • Batcher ¡Network ¡

– switching ¡elements ¡sort ¡two ¡numbers ¡

  • some ¡elements ¡sort ¡into ¡ascending ¡(clear) ¡
  • some ¡elements ¡sort ¡into ¡descending ¡(shaded) ¡

– elements ¡arranged ¡to ¡implement ¡merge ¡sort ¡ – complexity: ¡n ¡log2

2 ¡n ¡ ¡

  • Common ¡Design: ¡Batcher-­‑Banyan ¡Switch ¡

Fundamentals of Computer Networks Packet Switching

slide-41
SLIDE 41

High-­‑Speed ¡IP ¡Router ¡

  • Switch ¡(possibly ¡ATM) ¡
  • Line ¡Cards ¡+ ¡Forwarding ¡Engines ¡

– link ¡interface ¡ – router ¡lookup ¡(input) ¡ – common ¡IP ¡path ¡(input) ¡ – packet ¡queue ¡(output) ¡

  • Network ¡Processor ¡

– rou?ng ¡protocol(s) ¡ – excep?onal ¡cases ¡

Fundamentals of Computer Networks Packet Switching

slide-42
SLIDE 42

High-­‑Speed ¡Router ¡

Fundamentals of Computer Networks Packet Switching Line card (forwarding buffering) Line card (forwarding buffering) Line card (forwarding buffering) Line card (forwarding buffering)

Routing CPU Buffer memory Routing software w/ router OS

slide-43
SLIDE 43

Alterna?ve ¡Design ¡

Fundamentals of Computer Networks Packet Switching

Crossbar Switch

PC

CPU MEM NI with uP

. . .

NI with uP

PC

CPU MEM NI with uP

. . .

NI with uP

PC

CPU MEM NI with uP

. . .

NI with uP

PC

CPU MEM NI with uP

. . .

NI with uP

PC

CPU MEM NI with uP

. . .

NI with uP

PC

CPU MEM NI with uP

. . .

NI with uP

slide-44
SLIDE 44

ATM ¡in ¡the ¡LAN ¡

  • ATM ¡is ¡used ¡generally ¡used ¡for ¡backbones ¡
  • ATM ¡can ¡also ¡be ¡used ¡for ¡LAN ¡but ¡requires ¡

special ¡mechanisms ¡to ¡emulate ¡LAN ¡ characteris?cs ¡(e.g., ¡broadcast ¡used ¡by ¡ARP) ¡

  • Solu?ons: ¡

– New ¡protocols ¡that ¡do ¡not ¡require ¡broadcast ¡(e.g., ¡ ATMARP) ¡ – Emulate ¡shared ¡media ¡LAN: ¡LAN ¡Emula?on ¡(LANE) ¡

Fundamentals of Computer Networks Packet Switching

slide-45
SLIDE 45

LANE ¡

  • LANE ¡servers: ¡

– LAN ¡Emula?on ¡Configura?on ¡Server ¡(LECS): ¡configura%on ¡ – LAN ¡Emula?on ¡Server ¡(LES): ¡configura%on ¡ – Broadcast ¡and ¡Unknown ¡Server ¡(BUS): ¡data ¡transfer ¡

  • LAN ¡Emula?on ¡Client ¡(LEC): ¡

– Is ¡connected ¡to ¡the ¡LECS ¡through ¡a ¡predefined ¡VC ¡ – Gets ¡config ¡info ¡from ¡LECS ¡(e.g., ¡type ¡of ¡LAN, ¡maximum ¡packet ¡size, ¡ATM ¡ address ¡of ¡the ¡LES) ¡ – LEC ¡registers ¡with ¡LES ¡(ATMADDR, ¡MACADDR), ¡and ¡gets ¡the ¡BUS ¡ATMADDR ¡ – Broadcast ¡is ¡sent ¡to ¡BUS ¡ – Unicast: ¡first ¡packet ¡sent ¡to ¡BUS ¡+ ¡Address ¡resolu?on ¡request ¡to ¡LES, ¡ subsequent ¡packets ¡are ¡directly ¡sent ¡to ¡the ¡des?na?on ¡over ¡a ¡newly ¡ established ¡VC ¡

Fundamentals of Computer Networks Packet Switching