Lec 4 and_5

18
Packet Switching and Circuit Switching Network Core Engr. Abbas Abbasi

description

Circuit switching and packet switching

Transcript of Lec 4 and_5

Page 1: Lec 4 and_5

Packet Switching and Circuit Switching

Network Core

Engr. Abbas Abbasi

Page 2: Lec 4 and_5

Important Terms Review DSL

DSLAM

HFC

CMTS

FTTH

AON

PON

ONT

OLT

LAN

3G

LTE

WiFi

Physical Medium Types

UTP

Shared Medium

OC (Optical Carrier)

Geostationary Satellite

LEO Satellite

Page 3: Lec 4 and_5

The Network Core

mesh of interconnected routers

the fundamental question: how is

data transferred through net?

circuit switching: dedicated

circuit per call: telephone net

packet-switching: data sent

thru net in discrete “chunks”

Routers Vs Switches

Message length L, Transmission

rate R, and transmission delay

Page 4: Lec 4 and_5

Network Core: Circuit Switchingnetwork resources (e.g.,

bandwidth) divided into

“pieces”

pieces allocated to calls

resource piece idle if not used by

owning call (no sharing)

dividing link bandwidth into

“pieces”

frequency division

time division (TDM)

code division (CDM)

Page 5: Lec 4 and_5

Circuit Switching: FDM and TDM

FDM

frequency

time

TDM

frequency

time

4 users

Example:

Page 6: Lec 4 and_5

Numerical example

How long does it take to send a file of 640,000 bits from host

A to host B over a circuit-switched network?

All links are 1.536 Mbps

Each link uses TDM with 24 slots/sec

500 msec to establish end-to-end circuit

Let’s work it out!

t = (0.500 s)+ (640,000 bits)/((1,536,000 bits/s)/ (24 channels))

= 0.5 + 10.0 = 10.5 seconds until last bit leaves Host A

but how long until last bit arrives at Host B?

Page 7: Lec 4 and_5

Network Core: Packet Switchingeach end-end data stream divided into

packets

user A, B packets share network

resources

each packet uses full link bandwidth

(for short time)

resources used as needed

resource contention:

aggregate resource demand

can exceed amount available

congestion: packets queue,

wait for link use

store and forward: packets

move one hop at a time

Node receives complete

packet before forwardingBandwidth division into “pieces”

Dedicated allocation

Resource reservation

Page 8: Lec 4 and_5

Packet Switching: Statistical Multiplexing

Sequence of A & B packets does not have fixed pattern, shared on demand

statistical multiplexing.

TDM: each host gets same slot in revolving TDM frame.

A

B

C100 Mb/sEthernet

1.5 Mb/s

D E

statistical multiplexing

queue of packetswaiting for output

link

Page 9: Lec 4 and_5

Packet-switching: store-and-forward

Takes L/R seconds to transmit (push out) packet of L bits on to link or R bps

Entire packet must arrive at router before it can be transmitted on next link: store and forward

delay = 3L/R (assuming zero propagation delay)

Example:

L = 7.5 Mbits

R = 1.5 Mbps

delay = 15 sec

R R R

L

more on delay shortly …

Note: local connection so that (a) propagation time is negligible, and (b) no delay due to congestion.

Page 10: Lec 4 and_5

Packet switching versus circuit switching

1 Mb/s link

each user:

100 kb/s when “active”

active 10% of time

circuit-switching:

10 users

packet switching:

with 35 users, probability > 10 active less than .0004

Packet switching allows more users to use network!

N users

1 Mbps link

Q: how did we get value 0.0004?

P(n,N) =(N!) ( p^n) (1-p)^(N-n)

(n!) (N-n)!

P(11,35) =(35!) ( 0.1^11) (0.9^24)

(11!) (24!)

= 0.0003

P(12,35) = 0.0001

Page 11: Lec 4 and_5

Packet switching versus circuit switching

Great for bursty data

resource sharing

simpler, no call setup

If excessive congestion: packet delay and loss.

protocols needed for reliable data transfer, congestion control (TCP does a good job)

Q: How to provide circuit-like behavior?

bandwidth guarantees needed for audio/video apps

still an unsolved problem (chapter 7)

Is packet switching a “slam dunk winner?”

Page 12: Lec 4 and_5

Internet structure: network of networks

roughly hierarchical

at center: “tier-1” ISPs (e.g., MCI, Sprint, AT&T, Cable and Wireless),

national/international coverage

treat each other as equals

Tier 1 ISP

Tier 1 ISP

Tier 1 ISP

Tier-1 providers interconnect (peer) privately

NAP

Tier-1 providers also interconnect at public network access points (NAPs)

Page 13: Lec 4 and_5

Introduction

Tier-1 ISP: e.g., SprintSprint US backbone network

Seattle

Atlanta

Chicago

Roachdale

Stockton

San Jose

Anaheim

Fort Worth

Orlando

Kansas City

CheyenneNew York

PennsaukenRelayWash. DC

Tacoma

DS3 (45 Mbps)

OC3 (155 Mbps)

OC12 (622 Mbps)

OC48 (2.4 Gbps)

to/from customers

peering

to/from backbone

.

………

POP: point-of-presence

Page 14: Lec 4 and_5

Internet structure: network of networks

“Tier-2” ISPs: smaller (often regional) ISPs

Connect to one or more tier-1 ISPs, possibly other tier-2 ISPs

Tier 1 ISP

Tier 1 ISP

Tier 1 ISP

NAP

Tier-2 ISPTier-2 ISP

Tier-2 ISP Tier-2 ISP

Tier-2 ISP

Tier-2 ISP pays tier-1 ISP for connectivity to rest of Internet tier-2 ISP is customer oftier-1 provider

Tier-2 ISPs also peer privately with each other, interconnect at NAP*

* NAP - Network Access Point

Page 15: Lec 4 and_5

Internet structure: network of networks

“Tier-3” ISPs and local ISPs

last hop (“access”) network (closest to end systems)

Tier 1 ISP

Tier 1 ISP

Tier 1 ISP

NAP

Tier-2 ISPTier-2 ISP

Tier-2 ISP Tier-2 ISP

Tier-2 ISP

localISPlocal

ISPlocalISP

localISP

localISP Tier 3

ISP

localISP

localISP

localISP

Local and tier-3 ISPs are customers ofhigher tier ISPsconnecting them to rest of Internet

Page 16: Lec 4 and_5

Internet structure: network of networks

a packet passes through many networks!

Tier 1 ISP

Tier 1 ISP

Tier 1 ISP

NAP

Tier-2 ISPTier-2 ISP

Tier-2 ISP Tier-2 ISP

Tier-2 ISP

localISPlocal

ISPlocalISP

localISP

localISP Tier 3

ISP

localISP

localISP

localISP

Page 17: Lec 4 and_5

IXPs and Content Provider Networks

IXP: Internet Exchange Point

Page 18: Lec 4 and_5

Important Terms Store and Forward

Transmission

Messages and Packets

Packet Switch

Transmission Delay

Queuing Buffer or Output Buffer

Packet Loss

Forwarding Table

Routing Protocols

Circuit

Circuit Switching

End to End Connection

FDM

TDM

Silent Period

Tier 1,2,3 ISPs

Access ISP

IXP