chap6 switching

34

Upload: suhradam

Post on 31-Aug-2014

83 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chap6 Switching

Switching

G.K. PakleAdopted From: Behrouz Forouzan

Department of Information Technology

SGGS Institute of Engineering & Technology, Naned.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 1

/ 34

Page 2: Chap6 Switching

Outline

1 Switching

2 Circuit Switched NetworksIntroductionExamplesPhasesPerformance

3 Datagram NetworksIntroductionProperties

4 Virtual Circuit NetworksIntroductionThree Phases

5 Structure of Packet Switches

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 2

/ 34

Page 3: Chap6 Switching

Switching

Switched Network

Series of interlinked nodes is called switches.

Switches create temporary connections.

Some switches are connected to end systems others only do routing.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 3

/ 34

Page 4: Chap6 Switching

Switching

Switching: Methods

Packet switching combines datagram and virtual circuit networks.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 4

/ 34

Page 5: Chap6 Switching

Circuit Switched Networks Introduction

Outline

1 Switching

2 Circuit Switched NetworksIntroductionExamplesPhasesPerformance

3 Datagram NetworksIntroductionProperties

4 Virtual Circuit NetworksIntroductionThree Phases

5 Structure of Packet Switches

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 5

/ 34

Page 6: Chap6 Switching

Circuit Switched Networks Introduction

Circuit Switched Networks

Consists of set of switches connected by physical links.

Connection between two stations is a dedicated path of one or morelinks.

Each link is divided into n channels by using FDM/TDM.

End systems directly connected to switch..

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 6

/ 34

Page 7: Chap6 Switching

Circuit Switched Networks Introduction

Circuit Switched Networks

Setup Phase: requesting communication.

Channels are reserved, dedicated path is created then data transfer

takes place.

Properties of Circuit Switching:

1 Takes place in physical layer.

2 Resources of channels (time, bu�ers, ports) are dedicated during datatransfer until teardown phase.

3 Data �ow is continuous and not in packets.

4 No addressing involved in data transfer. Data transfer takes place onoccupied band/ time slot.

In circuit switching, the resources need to be reserved during the setupphase; the resources remain dedicated for the entire duration of datatransfer until the teardown phase.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 7

/ 34

Page 8: Chap6 Switching

Circuit Switched Networks Examples

Outline

1 Switching

2 Circuit Switched NetworksIntroductionExamplesPhasesPerformance

3 Datagram NetworksIntroductionProperties

4 Virtual Circuit NetworksIntroductionThree Phases

5 Structure of Packet Switches

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 8

/ 34

Page 9: Chap6 Switching

Circuit Switched Networks Examples

Example 1: Circuit Switching

Let us use a circuit-switched network to connect eight telephones in a smallarea. Communication is through 4-kHz voice channels. We assume thateach link uses FDM to connect a maximum of two voice channels. Thebandwidth of each link is then 8 kHz. Figure shows the situation.Telephone 1 is connected to telephone 7; 2 to 5; 3 to 8; and 4 to 6. Ofcourse the situation may change when new connections are made. Theswitch controls the connections.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 9

/ 34

Page 10: Chap6 Switching

Circuit Switched Networks Examples

Example 1: Circuit Switching

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 10

/ 34

Page 11: Chap6 Switching

Circuit Switched Networks Examples

Example 2: Circuit Switching

As another example, consider a circuit-switched network that connectscomputers in two remote o�ces of a private company. The o�ces areconnected using a T-1 line leased from a communication service provider.There are two 4 Ö 8 (4 inputs and 8 outputs) switches in this network. Foreach switch, four output ports are folded into the input ports to allowcommunication between computers in the same o�ce. Four other outputports allow communication between the two o�ces. Figure shows thesituation.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 11

/ 34

Page 12: Chap6 Switching

Circuit Switched Networks Examples

Example 2: Circuit Switching

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 12

/ 34

Page 13: Chap6 Switching

Circuit Switched Networks Phases

Outline

1 Switching

2 Circuit Switched NetworksIntroductionExamplesPhasesPerformance

3 Datagram NetworksIntroductionProperties

4 Virtual Circuit NetworksIntroductionThree Phases

5 Structure of Packet Switches

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 13

/ 34

Page 14: Chap6 Switching

Circuit Switched Networks Phases

Circuit Switching: Phases

Setup Phase:

Setup means creating dedicated channels between the switches.

To make a connection, an acknowledgement from receiver needs to besent in opposite direction to sender.

Only after receiving acknowledgement connection is established.

End to end addressing is required to create the connection.

Data Transfer Phase:

After establishment of dedicated circuit, two parties can transfer data.

Teardown Phase:

When one to the parties needs to disconnect, a signal is sent to eachswitch to release the resources.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 14

/ 34

Page 15: Chap6 Switching

Circuit Switched Networks Performance

Outline

1 Switching

2 Circuit Switched NetworksIntroductionExamplesPhasesPerformance

3 Datagram NetworksIntroductionProperties

4 Virtual Circuit NetworksIntroductionThree Phases

5 Structure of Packet Switches

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 15

/ 34

Page 16: Chap6 Switching

Circuit Switched Networks Performance

Circuit Switching

E�ciency:

Not e�cient as packet switching because resources needs to beallocated for entire duration of connection.When circuit switching used for computers, resources are wasted if nodata transfer.

Delay:

Delay is minimal.Total delay is due to create connection, transfer data anddisconnection of circuit.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 16

/ 34

Page 17: Chap6 Switching

Datagram Networks Introduction

Outline

1 Switching

2 Circuit Switched NetworksIntroductionExamplesPhasesPerformance

3 Datagram NetworksIntroductionProperties

4 Virtual Circuit NetworksIntroductionThree Phases

5 Structure of Packet Switches

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 17

/ 34

Page 18: Chap6 Switching

Datagram Networks Introduction

Datagram Networks

To send messages between systems, needs to be divided into packetsof variable sizes.

Packet is determined by network and governing protocol.

Resources are allocated on demand.

Lack of resource reservation creates delay at switches. (FIFO)

Each packet treated independently of others. Packets are calleddatagrams.

Switching is done at Network Layer.

Switches in datagram are referred as Routers.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 18

/ 34

Page 19: Chap6 Switching

Datagram Networks Introduction

Datagram Networks

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 19

/ 34

Page 20: Chap6 Switching

Datagram Networks Properties

Outline

1 Switching

2 Circuit Switched NetworksIntroductionExamplesPhasesPerformance

3 Datagram NetworksIntroductionProperties

4 Virtual Circuit NetworksIntroductionThree Phases

5 Structure of Packet Switches

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 20

/ 34

Page 21: Chap6 Switching

Datagram Networks Properties

Routing Table

Each switch maintains a routing table based on destination address.

Routing tables are dynamic and updated periodically.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 21

/ 34

Page 22: Chap6 Switching

Datagram Networks Properties

Other Properties

E�ciency:Better than circuit switched networks.

Delay:

Greater delay.

Packets experience wait at each switch before forwarding.

Delay is not uniform.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 22

/ 34

Page 23: Chap6 Switching

Virtual Circuit Networks Introduction

Outline

1 Switching

2 Circuit Switched NetworksIntroductionExamplesPhasesPerformance

3 Datagram NetworksIntroductionProperties

4 Virtual Circuit NetworksIntroductionThree Phases

5 Structure of Packet Switches

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 23

/ 34

Page 24: Chap6 Switching

Virtual Circuit Networks Introduction

Introduction

1 Contains setup, data transfer and teardown phases.

2 Resources are allocated in set up phase or on demand.

3 Data is packetized and each packet carries an address in header.Address has local juridiction only.

4 All packets follow the same path as in circuit switching.

5 Implemented in data link layer.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 24

/ 34

Page 25: Chap6 Switching

Virtual Circuit Networks Introduction

Addressing

Global Addressing:

Source/Destination needs to have global addresses.

Global addresses are used to create virtual circuit identi�ers.

Virtual Circuit Identi�ers (VCI):

VCI is actually used for data transfer.

VCI has only switch scope. Used by frame between two switches.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 25

/ 34

Page 26: Chap6 Switching

Virtual Circuit Networks Three Phases

Outline

1 Switching

2 Circuit Switched NetworksIntroductionExamplesPhasesPerformance

3 Datagram NetworksIntroductionProperties

4 Virtual Circuit NetworksIntroductionThree Phases

5 Structure of Packet Switches

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 26

/ 34

Page 27: Chap6 Switching

Virtual Circuit Networks Three Phases

Data Transfer Phase

All switches have table entry for virtual circuit.

Table has four columns.

Each switch changes VCI and routes the frame.

Process creates a virtual circuit not a real circuit between source anddestination.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 27

/ 34

Page 28: Chap6 Switching

Virtual Circuit Networks Three Phases

Setup Phase

Setup Request:

1 Source sends setup frame to switch 1.

2 Switch 1 creates entry in table. Only three columns are �lled.

3 Same happens for switch 2 and 3.

4 Destination assigns VCI to incoming frame to let know that it hascome from source.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 28

/ 34

Page 29: Chap6 Switching

Virtual Circuit Networks Three Phases

Setup Phase

Acknowledgement: Acknowledgement frame completes the entries inswitching tables.

1 Destination sends acknowledgement to switch 3. ACK carries globalsource and destination addresses.

2 Switch 3 updates incoming VCI as outgoing VCI.

3 Switch 2 and 1 updates accordingly.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 29

/ 34

Page 30: Chap6 Switching

Virtual Circuit Networks Three Phases

Teardown Phase

Teardown Phase

Source after sending all frames to destination, sends a special frame calledteardown request. Destination responds with teardown con�rmation frame.All switches deletes corresponding entries from their tables.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 30

/ 34

Page 31: Chap6 Switching

Structure of Packet Switches

Structure of Packet Switches

Components:

Input Ports

Output Ports

Routing Processor

Switching Fabric

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 31

/ 34

Page 32: Chap6 Switching

Structure of Packet Switches

Structure of Packet Switches

Input Ports

Performs physical and data link functions of packet switch.

Signals converted to bits.

Errors are detected and corrected.

I/P Port has bu�ers to hold packets.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 32

/ 34

Page 33: Chap6 Switching

Structure of Packet Switches

Structure of Packet Switches

Output Ports:

Same functions as input port but in reverse order.

Routing Processor:

Performs the functions of network layer.

Destination address used to �nd the next hop and port number.(Tablelookup)

Switching Fabric:

Switching fabric moves the packet from input queue to output queue.

Three types: Crossbar, banyan, batcher banyan

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 33

/ 34

Page 34: Chap6 Switching

Structure of Packet Switches

Banyan Switch

Multistage switch with microswitches at each stage.Output port represented as binary string.For n inputs and n outputs we have log2 n stages with n/2microswitches at each stage.

G.K. Pakle Adopted From: Behrouz Forouzan (Department of Information Technology )SwitchingSGGS Institute of Engineering & Technology, Naned. 34

/ 34