csc581 communication networks ii chapter 7a: wide area network and switching techniques dr....

100
CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Upload: bertina-blankenship

Post on 11-Jan-2016

217 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

CSC581Communication Networks II

Chapter 7a: Wide Area Network and Switching Techniques

Dr. Cheer-Sun Yang

Page 2: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

2

Topics

• Circuit switching (p. 23-24)

• Message switching (p. 25)

• Packet switching (p. 26-28)– Datagram– Virtual Circuit

• Example of Packet Switching Protocol:

X. 25 (Section 7.3)

Page 3: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

3

Network Layer Functions

• Switching (layer 3 switching): packet switching

• Routing

• Fragmentation and assembly

• Congestion Control

• Internetworking

Page 4: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

4

WAN vs. LAN

• Wide area network (WAN) is the “cloud” that we’ve been ignoring.

• A WAN covers much larger areas for which LAN protocols are inappropriate.

• Routing in WAN is more complex than that in LAN.

• Switching is a main topic in the design of WAN (circuit, message, packet switching).

Page 5: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

5

WAN vs. LAN(cont’d)

• Error recovery at the network layer is needed.• Internetworking may require protocol conversion

performed by a protocol converter, including bridges and routers, or gateways.

• Packet fragmentation and assembly• Quality of Service (QoS) and Internet

Management are important.

Let’s start with another look of the big picture.

Page 6: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

6

Simple Switched Network

Page 7: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

7

Figure 7.1

t0t1

Network

Page 8: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

8

Figure 7.2

Physicallayer

Data linklayer

Physicallayer

Data linklayer

End system

Networklayer

Networklayer

Physicallayer

Data linklayer

Networklayer

Physicallayer

Data linklayer

Networklayer

Transportlayer

Transportlayer

MessagesMessages

Segments

End system

Networkservice

Networkservice

Page 9: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

9

3 2 11 2

21

3 2 11 2

21

21

Medium

A B

3 2 11 2

21

C

21

21

2 134 1 2 3 4

End system

End system

Network

1

2

Physical layer entity

Data link layer entity3 Network layer entity

3 Network layer entity

Transport layer entity4

Figure 7.3

Page 10: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

10

Switching Networks

• Category of switching functions within a switch: space division switching, time division switching

• Category of switching techniques:– layer 1: circuit switching

– layer 2: cell switching (ATM), frame switching (frame ralay)

– layer 3: packet switching

Page 11: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

11

Space Division Switching

• Developed for analog environment• Separate physical paths• Crossbar switch

– Number of crosspoints grows as square of number of stations

– Loss of crosspoint prevents connection

– Inefficient use of crosspoints• All stations connected, only a few crosspoints in use

– Non-blocking

Page 12: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

12

User 1

SwitchLink

User n

User n-1

(a) Network

(b) Switch Control

123

N

123

N

Connectionof inputs to outputs

Figure 4.21

Page 13: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

13

N

1 2

1

N

2

N-1

Figure 4.22

Page 14: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

14

Crossbar Matrix

Page 15: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

15

Multistage Switch

• Reduced number of crosspoints

• More than one path through network– Increased reliability

• More complex control

• May be blocking

Page 16: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

16

nxk

nxk

nxk

nxk

N/n x N/n

N/n x N/n

N/n x N/n

kxn1

2

N/n

Ninputs

1

2

3 3

N/n

Noutputs

1

2

k

2(N/n)nk + k (N/n)2 crosspoints

kxn

kxn

kxn

Figure 4.23

Page 17: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

17

nxk

nxk

nxk

N/n x N/n

N/n x N/n

N/n x N/n

kxn1

N/n

Desiredinput

1

jm

N/n

Desiredoutput

1

2n-1

kxn

kxn

n-1

N/n x N/nn+1

N/n x N/n2n-2

free path freepath

n-1busy

n-1busy

Figure 4.24

Page 18: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

18

12

24

12

24

FromTDM

DeMUX

ToTDMMUX

24 23 12

2 241 23

Read slots inpermuted order

Figure 4.25

Page 19: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

19

nxk

nxk

nxk

nxk

N/n x N/n kxn1

2

N/n

Ninputs

1

3

1

12

n

input TDM frame with n slots

output TDM frame with k slots

Figure 4.26

Page 20: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

20

nxk N/n x N/n

N/n x N/n

N/n x N/n

kxn1 1

2

N/n

1

2

k

kxn

kxn

nxk2

nxkN/n

first slot

kth slot

first slot

kth slot

Figure 4.27

Page 21: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

21

nxk

nxk

nxk

nxk

N/n x N/nTime-Shared

SpaceSwitch

kxn1

2

N/n

Ninputs

1

2

3 3

N/n

Noutputs

TDMn slots

n slots

n slots

n slots

kxn

kxn

kxn

TDMk slots

TDMk slots

TSI Stage TSI StageSpace Stage

Figure 4.28

Page 22: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

22

2x3

2x3

3x21

2

1

23x2D1

B1 A1B2 A2

C1D2 C2

B1 A1

C1D1

A1

B1

C1

D1

A1 C1

B1 D1

Figure 4.29

Page 23: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

23

Figure 4.30

Page 24: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

24

Signal

Source

Signal

Release

Signal

Destination

GoAhead Message

Figure 4.31

Page 25: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

25

(a) Routing in a typical metropolitan area

(b) Routing between two LATAs

1

2 3

4

5

LATA 1 LATA 2

net 1

net 2

A B

C D

Figure 4.32

Page 26: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

26

local telephone office

Dis

trib

utio

n F

ram

e

Serving Area I/f

Serving Area I/f

Pedestal

feeder cable

Switch

distribution cable

Figure 4.33

Page 27: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

27

Original signal

Hybrid transformer

Received signal

Echoed signal

Receive pair

Transmit pair

Figure 4.34

Page 28: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

28

Localanalog

Localdigital

Digitaltrunks

LocalSwitch

Tie lines

Foreign exchange

Channel-switched traffic (digital leased lines)

Circuit-switched traffic

Digitalcross-connect

System

Figure 4.35

Page 29: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

29

Physical SONET

Topology usingADMs and DCCs

Logical Topology

Switches see thistopology

DCC

Figure 4.36

ADM

ADM

ADM

ADM

ADM

ADM

Page 30: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

30

Basic Rate Interface (BRI): 2B+D

Primary Rate Interface (PRI): 23B+D

BRI

PRI

BRI

PRI

CircuitSwitched Network

ChannelSwitched NetworkPrivate

SignalingNetwork

PacketSwitched Networks

Figure 4.37

Page 31: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

31

SPC

Control Signaling Message

Figure 4.39

Page 32: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

32

Switch

Processor

Office B

Switch

Office A

ProcessorSignaling

ModemModem

Trunks

Figure 4.39

Page 33: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

33

STP

STP

STP

STP

SSP SSP

Transport Network

Signaling Network

SSP = Service switching point (signal to message)STP = Signal transfer point (message transfer)SCP = Service control point (processing)

SCP

Figure 4.40

Page 34: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

34

SSP

SSP

Transport Network

ExternalDatabase

SignalingNetwork Intelligent

Peripheral

Figure 4.40

Page 35: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

35

Application Layer

Transport Layer

Network Layer

Data Link Layer

Physical Layer

Presentation Layer

Session Layer

SCCP

MTP Level 3

MTP Level 2

MTP Level 1

ISUPTCAPTUP

Figure 4.42

Page 36: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

36

Time Division Switching

• Partition low speed bit stream into pieces that share higher speed stream

• e.g. TDM bus switching– based on synchronous time division multiplexing

– Each station connects through controlled gates to high speed bus

– Time slot allows small amount of data onto bus

– Another line’s gate is enabled for output at the same time

Page 37: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

37

Control Signaling Functions

• Audible communication with subscriber• Transmission of dialed number• Call can not be completed indication• Call ended indication• Signal to ring phone• Billing info• Equipment and trunk status info• Diagnostic info• Control of specialist equipment

Page 38: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

38

Control Signal Sequence• Both phones on hook• Subscriber lifts receiver (off hook)• End office switch signaled• Switch responds with dial tone• Caller dials number• If target not busy, send ringer signal to target subscriber• Feedback to caller

– Ringing tone, engaged tone, unobtainable

• Target accepts call by lifting receiver• Switch terminates ringing signal and ringing tone• Switch establishes connection• Connection release when Source subscriber hangs up

Page 39: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

39

Switch to Switch Signaling

• Subscribers connected to different switches

• Originating switch seizes interswitch trunk

• Send off hook signal on trunk, requesting digit register at target switch (for address)

• Terminating switch sends off hook followed by on hook (wink) to show register ready

• Originating switch sends address

Page 40: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

40

Control Signals

Page 41: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

41

Location of Signaling

• Subscriber to network– Depends on subscriber device and switch

• Within network– Management of subscriber calls and network– ore complex

Page 42: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

42

In Channel Signaling

• Use same channel for signaling and call– Requires no additional transmission facilities

• Inband– Uses same frequencies as voice signal– Can go anywhere a voice signal can– Impossible to set up a call on a faulty speech path

• Out of band– Voice signals do not use full 4kHz bandwidth– Narrow signal band within 4kHz used for control– Can be sent whether or not voice signals are present– Need extra electronics– Slower signal rate (narrow bandwidth)

Page 43: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

43

Drawbacks of In Channel Signaling

• Limited transfer rate

• Delay between entering address (dialing) and connection

• Overcome by use of common channel signaling

Page 44: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

44

Common Channel Signaling

• Control signals carried over paths independent of voice channel

• One control signal channel can carry signals for a number of subscriber channels

• Common control channel for these subscriber lines• Associated Mode

– Common channel closely tracks interswitch trunks

• Disassociated Mode– Additional nodes (signal transfer points)– Effectively two separate networks

Page 45: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

45

Common v. In Channel Signaling

Page 46: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

46

Signaling Modes

Page 47: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

47

Signaling System Number 7

• SS7• Common channel signaling scheme• ISDN• Optimized for 64k digital channel network• Call control, remote control, management and

maintenance• Reliable means of transfer of info in sequence• Will operate over analog and below 64k• Point to point terrestrial and satellite links

Page 48: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

48

SS7 Signaling Network Elements

• Signaling point (SP)– Any point in the network capable of handling SS7

control message

• Signal transfer point (STP)– A signaling point capable of routing control messages

• Control plane– Responsible for establishing and managing connections

• Information plane– Once a connection is set up, info is transferred in the

information plane

Page 49: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

49

Transfer Points

Page 50: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

50

Signaling Network Structures

• STP capacities– Number of signaling links that can be handled– Message transfer time– Throughput capacity

• Network performance– Number of SPs– Signaling delays

• Availability and reliability– Ability of network to provide services in the face of

STP failures

Page 51: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

51

Circuit Switching Routing

• Many connections will need paths through more than one switch

• Need to find a route– Efficiency– Resilience

• Public telephone switches are a tree structure– Static routing uses the same approach all the time

• Dynamic routing allows for changes in routing depending on traffic– Uses a peer structure for nodes

Page 52: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

52

Alternate Routing

• Possible routes between end offices predefined

• Originating switch selects appropriate route

• Routes listed in preference order

• Different sets of routes may be used at different times

Page 53: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

53

Alternate Routing Diagram

Page 54: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

54

Problems RE Circuit Switching

• Circuit switching designed for voice– Resources dedicated to a particular call– Much of the time a data connection is idle– Data rate is fixed

• Both ends must operate at the same rate

Page 55: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

55

Message Switching

• A message is broken into smaller data units, called messages.

• Each message is sent to the destination via different paths.

• At each node, the message is stored temporarily prior to retransmission. This concept is called store-and-forward.

Page 56: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

56

Message Switching (cont’d)

• In circuit switching, a single route is dedicated to the exchange of all messages. In message switching, different message data units can be transmitted via different routes.

Page 57: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

57

Message Switching (cont’d)

• In circuit switching, a connection between the two parties is required, whereas in message switching, a message can be sent and stored for later retrieval.

• However, since the size of each message data unit is quite large, error recovery is costly. The message data unit is broken into a smaller chunkm called packet.

• Packet switching is more realistic.

Page 58: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

58

Networknodes

Message

SubscriberB

SubscriberA

Message

Message

Message

Figure 7.13

Page 59: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

59

t

t

t

t

Delay

Source

Destination

T

p

Minimum Delay = 3p + 3T

Switch 1

Switch 2

Figure 7.14

Page 60: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

60

Page 61: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

61

Packet Switching

• The size of a packet is design dependent.• Each packet contains the destination

address or some other designator indicating where it should go.

• When the packets all arrive, they are reassembled.

• Network Layer protocol is responsible for routing, fragmentation/reassembly.

Page 62: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

62

Basic Operation

• Data transmitted in small packets– Typically 1000 octets– Longer messages split into series of packets– Each packet contains a portion of user data plus some

control info

• Control info– Routing (addressing) info

• Packets are received, stored briefly (buffered) and past on to the next node– Store and forward

Page 63: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

63

Figure 7.4

.

.

.MUX

Network access

Node

Page 64: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

64

LAN

Bridge

LAN 1

LAN 2

(a) (b)

Figure 7.5

Page 65: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

65

RR

RR

S

SS

s

s s

s

ss

s

ss

s

R

s

R

Backbone

To internet or wide area network

Organization Servers

Gateway

Departmental Server

Figure 7.6

Page 66: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

66

Interdomain level

Intradomain level

LAN level

Autonomous systemor domain

Border routers

Border routers

Figure 7.7

Internet service provider

Page 67: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

67

RA

RB

RC

Route server

NAP

National service provider A

National service provider B

National service provider C

LAN

NAPNAP

(a)

(b)

Figure 7.8

Page 68: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

68

Advantages

• Line efficiency– Single node to node link can be shared by many packets

over time– Packets queued and transmitted as fast as possible

• Data rate conversion– Each station connects to the local node at its own speed– Nodes buffer data if required to equalize rates

• Packets are accepted even when network is busy– Delivery may slow down

• Priorities can be used

Page 69: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

69

Switching Technique

• Station breaks long message into packets

• Packets sent one at a time to the network

• Packets handled in two ways– Datagram– Virtual circuit

Page 70: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

70

Network

Packet switch

Transmission link

Figure 7.9

Page 71: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

71

Structure of Switch/Router

• Line card• Interconnection Fabric• Control• Input ports• Output ports

Page 72: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

72

Control

1

2

3

N

Line Card

Line Card

Line Card

Line CardIn

terc

onne

ctio

nFa

bric

Line Card

Line Card

Line Card

Line Card

1

2

3

N

Figure 7.10

…… ……

Page 73: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

73

CPU

1

2

3

N

NIC Card

NIC Card

NIC Card

NIC Card Mai

n M

emor

y

I/OBus

Figure 7.11

……

Page 74: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

74

1

2

N

1

2

N

Figure 7.12

……

Page 75: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

75

Datagram

• Each packet treated independently

• Packets can take any practical route

• Packets may arrive out of order

• Packets may go missing

• Up to receiver to re-order packets and recover from missing packets

Page 76: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

76

Packet 2

Packet 1

Packet 1

Packet 2

Packet 2

Figure 7.15

Page 77: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

77

t

t

t

t

31 2

31 2

321

3p + 2(T/3) first bit received

3p + 3(T/3) first bit released

3p + 5 (T/3) last bit released

Lp + (L-1)P first bit received

Lp + LP first bit released

Lp + LP + (k-1)P last bit releasedwhere T = k P

3 hops L hops

p

p + P

p + P

Source

Destination

Switch 1

Switch 2

Figure 7.16

Page 78: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

78

Destinationaddress

Outputport

1345 12

2458

70785

6

12

1566

Figure 7.16

Page 79: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

79

Virtual Circuit

• Preplanned route established before any packets sent

• Call request and call accept packets establish connection (handshake)

• Each packet contains a virtual circuit identifier instead of destination address

• No routing decisions required for each packet• Clear request to drop circuit• Not a dedicated path

Page 80: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

80

Virtual Circuits vs Datagram

• Virtual circuits– Network can provide sequencing and error control– Packets are forwarded more quickly

• No routing decisions to make

– Less reliable• Loss of a node looses all circuits through that node

• Datagram– No call setup phase

• Better if few packets

– More flexible• Routing can be used to avoid congested parts of the network

Page 81: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

81

Packet

Packet

Figure 7.17

Page 82: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

82

t

t

t

t

31 2

31 2

321

Release

Connect request

CR

CR Connect confirm

CC

CC

Page 83: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

83

SW 1

SW 2

SW n

Connect request

Connect request

Connect request

Connect confirm

Connect confirm

Figure 7.20

Page 84: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

84

Identifier Outputport

15 15

58

13

13

7

27

12

Nextidentifier

44

23

16

34

Entry for packetswith identifier 15

Figure 7.21

Page 85: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

85

31 2

31 2

321

Minimum Delay = 3p+T t

t

t

tSource

Destination

Switch 1

Switch 2

Figure 7.22

Page 86: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

86

ATM Networks and Layer 2 Packet Switching-Cell Switching• Asynchronous Transfer Mode (ATM)

Page 87: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

87

MUX

`

Wasted bandwidth

ATM

TDM

4 3 2 1 4 3 2 1 4 3 2 1

4 3 1 3 2 2 1

Voice

Data packets

Images

Figure 7.37

Page 88: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

88

2

3

N

1Switch

N

1…

5

6

video 25

video

voice

data

32

32 61

25

32

3261

75

67

39

67

N

1

32

video 75

voice 67

data 39

video 67

Figure 7.38

Page 89: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

89

c ATMSw1

ATMSw4

ATMSw2

ATMSw3

ATMDCC

ab

de

VP3 VP5

VP2

VP1

a

bc

deSw = switch

Figure 7.39

Page 90: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

90

Physical Link

Virtual Paths

Virtual Channels

Figure 7.40

Page 91: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

91

1 2 NN-1

Figure 7.41

Page 92: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

92

Packet buffer

Transmission link

Arrivingpackets

Packet discardwhen full

Packet buffer

Transmissionlink

Arrivingpackets

Class 1 discardwhen full

Class 2discardwhen thresholdexceeded

(a)

(b)

Figure 7.42

Page 93: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

93

Transmission link

Packet discardwhen full

High-prioritypackets

Low-prioritypackets

Packet discardwhen full

When high-priorityqueue empty

Figure 7.43

Page 94: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

94

Sorted packet buffer

Transmissionlink

Arrivingpackets

Packet discardwhen full

Taggingunit

Figure 7.44

Page 95: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

95

Transmission link

Packet flow 1

Packet flow 2

Packet flow n

C bits/second

Approximatedbit-levelround robinservice

Figure 7.45

Page 96: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

96

Queue 1@ t=0

Queue 2@ t=0

1

t1 2

Fluid-flow system:both packets served at rate 1/2

Both packetscomplete serviceat t=2

0

1

t1 2

Packet-by-packet system:queue 1 served first at rate 1;then queue 2 served at rate 1.

Packet from queue 2being served

Packet fromqueue 1 beingserved

Packet fromqueue 2 waiting

0

Figure 7.46

Page 97: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

97

Rounds Generalize so R(t) is continuous, not discrete

R(t) grows at rate inverselyproportional to nactive(t)

Figure 7.47

Page 98: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

98

Queue 1@ t=0

Queue 2@ t=0

2

1

t3

Fluid-flow system:both packets served at rate 1/2

Packet from queues served at rate 1

0

2

1

t1 2

Packet-by-packet fair queueing:queue 2 served at rate 1

Packet fromqueue 1 beingserved at rate 1

Packet fromqueue 2 waiting

0 3

Figure 7.48

Page 99: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

Copyright 2000 McGraw-Hill Leon-Garcia and Widjaja Communication Networks

99

Queue 1@ t=0

Queue 2@ t=0

1

t1 2

Fluid-flow system:packet from queue 1served at rate 1/4;

Packet from queue 1 served at rate 1

Packet from queue 2served at rate 3/4 0

1

t1 2

Packet-by-packet weighted fair queueing:queue 2 served first at rate 1;then queue 1 served at rate 1.

Packet from queue 1being servedPacket from

queue 2 beingserved

Packet fromqueue 1 waiting

0

Figure 7.49

Page 100: CSC581 Communication Networks II Chapter 7a: Wide Area Network and Switching Techniques Dr. Cheer-Sun Yang

100

Reading Assignment

• 7.1 Network Services • 4.4 Layer 1 switching: Circuit Switching• 7.2 Packet Networks• 7.3 Layer 3 Switching: Message Switching,

Virtual Circuit Packet Switching, Datagram Packet Switching

• 7.6 Layer 2 Switching: ATM Cell Switching