MSIS 4523 Ch8.Switching

33
Data Communications Systems Ch 8: Switching JinKyu Lee, Ph.D. [email protected]  Include the course code (MSIS4523) in every e mail subject!!

Transcript of MSIS 4523 Ch8.Switching

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 1/33

Data Communications SystemsCh 8: Switching

JinKyu Lee, Ph.D.

[email protected]

 Include the course code (MSIS4523) in every email subject!!

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 2/33

Topics

Switched Networks

Circuit Switching

Three phases

Performance characteristics (sources for delays) Packet Switching

Datagram Network

Routing Table, Performance characteristics

Virtual Circuit Network VCI, Connection process, Performance characteristics

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 3/33

3

Switching

Switched network is a series of interlinked nodes Switches are devices that create temporary

connections between two or more devices linkedto the switch

Most switching we see today is either circuit orpacket based

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 4/33

4

Figure 8.2 Taxonomy of switched networks

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 5/33

5

Figure 8.1 Switched network

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 6/33

6

• A circuit-switched network is made of a set of switches connected by physical links, in which

each link is divided into n channels by using

FDM or TDM. Circuit switching takes place atthe physical layer

• Need to reserve resources at setup; then

resources are dedicated through the duration of 

data transfer until teardown

• Data is not packetized

• No addressing involved 

CIRCUIT-SWITCHED NETWORKS

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 7/337

Figure 8.3  A trivial circuit-switched network

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 8/338

 As a trivial example, let us use a circuit-switched  network to connect eight telephones in a small area.

Communication is through 4-kHz voice channels. We

 assume that each link uses FDM to connect a

 maximum of two voice channels. The bandwidth of each link is then 8 kHz. Figure 8.4 shows the situation.

Telephone 1 is connected to telephone 7; 2 to 5; 3 to 8;

 and 4 to 6. Of course the situation may change when

 new connections are made. The switch controls the connections.

 Example 8.1

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 9/339

Figure 8.4 Circuit-switched network used in Example 8.1

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 10/3310

 As another example, consider a circuit-switched 

 network that connects computers in two remote offices of a private company. The offices are connected 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. For each switch, four output

 ports are folded into the input ports to allow

 communication between computers in the same office.

 Four other output ports allow communication between the two offices. Figure 8.5 shows the

 situation.

 Example 8.2

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 11/3311

Figure 8.5 Circuit-switched network used in Example 8.2

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 12/3312

More on Circuit Switching

Three PhasesSet up

Data Transfer

TeardownEfficiency: Not very good as resources

are tied up for the duration of the

connectionDelay: Minimal delay; circuit-switching is

good for telephone use

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 13/33

13

Figure 8.6  Delay in a circuit-switched network

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 14/33

14

DATAGRAM NETWORKS

 In data communications, we need to send 

 messages from one end system to another. If the

 message is going to pass through a packet- switched network, it needs to be divided into

 packets of fixed or variable size. The size of the

 packet is determined by the network and the

 governing protocol.

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 15/33

15

Packet-Switched Datagram Network

In a packet-switched network, there is no resource

reservation; resources are allocated on demand

Datagram networks treat each packet independently

of others

Connectionless network 

A switch in a datagram network uses a routing table

that is based on the destination address

The destination address in the header of a packet in adatagram network remains the same during the entire

 journey of the packet

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 16/33

16

Figure 8.7  A datagram network with four switches (routers)

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 17/33

17

Figure 8.8  Routing table in a datagram network

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 18/33

18

More on Packet Switching

No set up or tear down phasesEfficiency: Very good as resources are

used on demand; resources are used onlywhen the packets are to be transferred

Delay: Additional delay over circuitswitching; the packets may have to wait atthe switch

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 19/33

19

Figure 8.9  Delay in a datagram network

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 20/33

20

VIRTUAL-CIRCUIT NETWORKS

 A virtual-circuit network is a cross between a circuit-

 switched network and a datagram network.

 It has some characteristics of both.

Virtual-Circuit Networks has nothing to do withVirtual Private Network (VPN)!!

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 21/33

21

VCN Characteristics

Set-up and Tear-down phaseResources can be allocated at set-up or

on demand

All packets follow the same path

Special addressing is needed.

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 22/33

22

VCN Addressing

Two types of addressing are used: globaland local

Global address unique in the scope of thenetwork

Virtual Circuit Identifier (VCI) is the localaddress to get from one switch to the next

Each switch has a table of addresses

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 23/33

23

Figure 8.11 Virtual-circuit identifier

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 24/33

24

Figure 8.12 Switch and tables in a virtual-circuit network

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 25/33

25

Set-up and Acknowledgement

Need to have a mechanism to initiate thecommunication

This is done through Set-up andAcknowledgement

Set-up sends a frame from sender toreceiver to reserve the resources

Acknowledgement frame replies to

complete the set-up.

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 26/33

26

Figure 8.14 Setup request in a virtual-circuit network

A B

Src Dst

Global ID

A B

Src Dst

Global ID

A B

Src Dst

Global ID

B A

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 27/33

27

Figure 8.15 Setup acknowledgment in a virtual-circuit network

A B

Src Dst

Global ID

A B

Src Dst

Global ID

A B

Src Dst

Global ID

B A7722

66

14

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 28/33

28

Figure 8.13 Source-to-destination data transfer after a VC is setup

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 29/33

29

More on V-C Switching

Efficiency: Good - resources are used ondemand. The source can check theavailability of resources

Delay: A little delay due to initial set-up

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 30/33

30

Figure 8.16  Delay in a virtual-circuit network

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 31/33

31

STRUCTURE & TYPES OF A SWITCH

Circuit Switches

Space Division Switches: Separates the path ofthe circuits spatial

Crossbar and Multistage

Time Division Switching

Time-slot interchange

Time and Space Combination Time-Space-Time Switch

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 32/33

32

Packet Switches

Input Ports: Doorway into the switchBits constructed from received signalDecapsulated from the frameErrors detected and corrected

Output Port: Same functions as input portbut in reverse

Routing Processor: Uses routing tables tofind the address of the next hop based on

destination addressSwitching Fabric: Cross-bar, Banyan,

Batcher-Banyan

8/3/2019 MSIS 4523 Ch8.Switching

http://slidepdf.com/reader/full/msis-4523-ch8switching 33/33

33

Figure 8.21  Packet switch components