fundamentals of computer networks ece 478/578 lecture #12: packet switching instructor: loukas lazos...

11
Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University of Arizona

Upload: alban-lucas

Post on 02-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University

Fundamentals of Computer NetworksECE 478/578

Lecture #12: Packet Switching Instructor: Loukas Lazos

Dept of Electrical and Computer EngineeringUniversity of Arizona

Page 2: Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University

Packet SwitchingDirectly connected networks limit the geographical area covered and # of hosts

Goal: Enable communication between hosts not directly connected

Solution: Use packet switches in a similar way that the telephone network uses phone switches

2

Page 3: Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University

Switching TopologyA switch implements a star topologySwitches are MIMO devices

Ports are numbered

3

Page 4: Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University

Connectionless NetworksNo dedicated connection between communicating hosts

Packets are sent to the switch at any time (no contention)

Source is not aware of the state of the destination

Packets may follow independent paths to the destination (out-of-order delivery, larger delays, etc.)

Less prone to switch failures if alternative paths exist

4

Page 5: Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University

DatagramsPackets sent to each switch containing the destination address

5

Destination Port

A 3

B 0

C 3

D 3

E 2

F 1

G 0

H 0

Routing table of Switch 2

Page 6: Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University

Virtual Circuit SwitchingAlso referred to as connection-orientedFirst a connection is setup, followed by a data transferVC table created for the connection setup

Incoming VC identifier (identifies the connection per link)Outgoing VC identifier (possibly different that the incoming)Incoming interface (different than the VC Identifier, similar to a port)Outgoing interface a(different than the VC identifier, similar to a port)

6

Incoming Interface Incoming VCI Outgoing Interface Outgoing VCI

2 5 1 11

VC table

Page 7: Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University

VC Connection Setup

Permanent VC (PVC): Administrator sets up a permanent connection and configures VC table

Switched VC (SVC): The host signals to the switches in order to establish a VC, dynamically.

7

Page 8: Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University

Example: PVC from A to B

8

Incoming Interface Incoming VCI Outgoing Interface Outgoing VCI

2 5 1 11

Switch 1

Incoming Interface Incoming VCI Outgoing Interface Outgoing VCI

3 11 2 7Switch

2

Incoming Interface Incoming VCI Outgoing Interface Outgoing VCI

0 7 1 4

Switch 3

Page 9: Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University

Data Transfer Stage

9

Page 10: Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University

Example: SVC from A to BA sends setup msg to switch 1 indicating the address of B

Switch 1 setups incoming/outgoing interfaces and VCIs

Connection setup msg is forwarded like a datagram to switch 2

Switch 2 repeats the setup process

Once data stage is over, connection is torn down10

Page 11: Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University

Some Observations on VCInitial setup msg contains the address of destination, data packets just need the VCI #

A switch/link failure leads to the repetition of the connection set up process. Old connection must also be terminated

Routing algorithm is needed for establishing the VC

11