Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual...

30
ITS323 Switching Switched Networks Circuit Switching Packet Switching Comparison Circuit and Packet Switching ITS323: Introduction to Data Communications Sirindhorn International Institute of Technology Thammasat University Prepared by Steven Gordon on 23 May 2012 ITS323Y12S1L09, Steve/Courses/2012/s1/its323/lectures/switching.tex, r2334

Transcript of Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual...

Page 1: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Circuit and Packet Switching

ITS323: Introduction to Data Communications

Sirindhorn International Institute of TechnologyThammasat University

Prepared by Steven Gordon on 23 May 2012ITS323Y12S1L09, Steve/Courses/2012/s1/its323/lectures/switching.tex, r2334

Page 2: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Contents

Switched Communications Networks

Circuit Switching

Packet Switching

Comparing Circuit and Packet Switching

Page 3: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Switched Communications Networks

I So far focussed on encoding and transmittinginformation over a link

I Now how networks used to interconnect many devicesI Switched Communication Networks

I Data transmitted from source to destination throughnetwork of switching nodes

I Switching nodes are not concerned with content of dataI Collection of nodes referred to as communications

networkI Devices attached to network are called stationsI Node—station links often dedicated point-to-point linksI Node—node links often multiplexedI Network is often not fully connected; but desirable to

have multiple paths for each pair of stations

I Two technologies used in wide area switched networks:circuit switching and packet switching

Page 4: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Simple Switching Network

Page 5: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Contents

Switched Communications Networks

Circuit Switching

Packet Switching

Comparing Circuit and Packet Switching

Page 6: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Example of Old-Style Circuit Switch

Seattle Municipal Archives from Seattle, WA via Wikimedia Commons; CC BY 2.0

Page 7: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Example of Current-Style Circuit Switch

Mudares via Wikimedia Commons; CC BY 2.5

cjwlabasst via Wikimedia Commons; Public domain

Page 8: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Circuit Switching Networks

I Dedicated communications path between two stations;path is sequence of links between nodes

I On each physical link, logical channel allocated toconnection

I Three phases:

1. Circuit establishment: Create station-to-station circuit,allocating resources as needed

2. Data transfer: Analog or digital data transmitted fromstation to station

3. Circuit disconnect: Circuit is terminated, de-allocationof resources

Page 9: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Circuit Switching Networks

I Path established before data transfer begins; channelcapacity must be reserved between each pair of nodes inpath, and switching capacity allocated at eachswitching node

I Developed to handle voice traffic, but also used for datatraffic

I Examples: public telephone network, private telephonenetworks, prviate data networks

Page 10: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Circuit Establishment

Page 11: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Example Connection Over a PublicCircuit-Switching Network

Page 12: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Issues in Circuit-Switching

Efficiency

I Resources reserved for duration of connection (capacityin all links, circuit in all switches)

I Inefficient if applications do not use the capacity

Quality

I Data rate, delay guaranteed for duration of connection

Link Speeds

I End devices must be the same speed

Page 13: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Contents

Switched Communications Networks

Circuit Switching

Packet Switching

Comparing Circuit and Packet Switching

Page 14: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Packet Switching

I For data connections, much of the time the line is idle;circuit-switching inefficient

I Packet switching: break data into packets, sending oneat a time from source to destination

Page 15: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Types of Packet Switching

Datagram Packet Switching

I Each packet is treated independently of all othersI Packets belonging to the same message may:

I Take different paths across the networkI Arrive at destination out of order and may be lost

I Packets need headers so switches know where to sendthem

Virtual Circuit Packet Switching

I Virtual circuit setup and teardownI Once setup, data is transferred as individual packets

I Take the same path across the networkI Arrive in-order at the destination, but may be lost

I Packets need headers so switches know what is the nextswitch it must be sent to

Page 16: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Packet Switching: Datagram Approach: (a)

Page 17: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Packet Switching: Datagram Approach: (b)

Page 18: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Packet Switching: Datagram Approach: (c)

Page 19: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Packet Switching: Datagram Approach: (d)

Page 20: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Packet Switching: Datagram Approach: (e)

Page 21: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

The Use of Virtual Circuits

Page 22: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Packet Switching: Virtual-Circuit Approach: (a)

Page 23: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Packet Switching: Virtual-Circuit Approach: (b)

Page 24: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Packet Switching: Virtual-Circuit Approach: (c)

Page 25: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Packet Switching: Virtual-Circuit Approach: (d)

Page 26: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Packet Switching: Virtual-Circuit Approach: (e)

Page 27: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Effect of Packet Size on Transmission Time

Page 28: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Contents

Switched Communications Networks

Circuit Switching

Packet Switching

Comparing Circuit and Packet Switching

Page 29: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Event Timing for Circuit Switching and PacketSwitching

Page 30: Circuit and Packet Switchingict.siit.tu.ac.th/~steven/its323y12s1/unprotected/ITS323...Virtual Circuit Packet Switching I Virtual circuit setup and teardown I Once setup, data is transferred

ITS323

Switching

Switched Networks

Circuit Switching

Packet Switching

Comparison

Comparison of Communication SwitchingTechniques