video and data networksconvergence for integrated voice,ip ...hgs/papers/2001/worldbank.pdf · have...

58
hgs/Worldbank 1 IP Telephony and SIP – IP convergence for integrated voice, video and data networks Henning Schulzrinne Dept. of Computer Science Columbia University New York, New York (sip:)[email protected] Worldbank IT Department, Washington, DC May 14th, 2001 May 2001

Upload: others

Post on 26-May-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

hgs/Worldbank 1

IP Telephony and SIP – IPconvergence for integrated voice,

video and data networksHenning Schulzrinne

Dept. of Computer ScienceColumbia UniversityNew York, New York

(sip:)[email protected]

Worldbank IT Department, Washington, DC

May 14th, 2001

May 2001

hgs/Worldbank 2

Overview

• Motivation for integration

• Difficulties: security, QOS, reliability

• SIP

May 2001

hgs/Worldbank 3

Integrated networks

Hourglass model:

IPv4IPv6

UDP TCP

HTTPRTSPSIP SMTP ftp

RTP

PPP MPLS

EthernetATM SDH

fiber

CAT5 wirelessfiber

NTP SNMP BGP

IMAP POPSDP

Typically, same wiring infrastructure.

May 2001

hgs/Worldbank 4

Voice and data traffic

100

1000

10000

100000

1996 1997 1998 1999 2000 2001 2002

wor

ldw

ide

traf

fic

(Gb/

s)

datavoice

May 2001

hgs/Worldbank 5

The phone works — why bother with VoIP?

user perspective carrier perspective

• variable compression: tin can to broadcastquality

• security through encryption

• caller, talker identification

• better user interface

• internat. calls: TAT transatlantic cable =$0.03/hr

• local calls: possibly cheaper (local accessfees)

• easy: video, whiteboard, . . .

• silence suppression➠ traffic ↓• shared facilities➠ management, redun-

dancy

• advanced services (simpler than AIN andCTI)

• separate fax, data, voice

• cheaper switching

• better management platforms

May 2001

hgs/Worldbank 6

Bandwidth advantages

• cost(2B) < 2 cost(B)

• B(voice + data)< B(voice) +B(data)

May 2001

hgs/Worldbank 7

Pricing

• initial motivation for Internet telephony was transport pricing

• however,services(like CLID, *69) have margins of 75%

• Ameritech: service revenue of $1b/yr

• transport: leased local wire, everything else flat or volume-based(service-independent)

May 2001

hgs/Worldbank 8

Internet telephony as PBX replacement

global Internet not quite ready➠ try as PBX

• have mission-critical LAN, PCs anyway

• usually ample (if switched) bandwidth, low latency

• packet switching is cheaper

• network PCs$= ISDN phones

• no need for billing

• new services easy to build:

– voice mail−→ email

– calendar integration:Mr. Jones is in a meeting. Please call back at 3:30 pm

– logic: if insurance agent calls, forward call to dial-a-joke

May 2001

hgs/Worldbank 9

Traffic (1998)

Measured in Dial Equipment Minutes (DEM) or bandwidth:

GDEM bandwidth (Gb/s)

Local 2986 364

Intrastate toll 422 51

Interstate toll 555 68

PBX: typically, about 10% utilization per phone➠ 6.4 kb/s per employee (128 Mb/sfor 20,000 person campus)

May 2001

hgs/Worldbank 10

Switching costs

switching method ports capacity (Gb/s) cents/64 kb/s $/interface

10/100BaseT Ethernet hub 24 2.40 0.6 10.00

100BaseTX Ethernet switch 24 2.40 0.9 14.60

PBX 256 0.02 218. 140

Lucent 5ESS local (no AIN) 5,000 0.32 469. 300

Lucent 5ESS local (AIN) 20,000 1.28 273. 175

Lucent 4ESS toll 100,000 6.40 7.8

May 2001

hgs/Worldbank 11

Internet telephony problems

• reliability

– power

– denial-of-service

• QoS

– delay

– local area network

– access network

– wide-area network

• architecture

• address space

– NAT

– IPv6

May 2001

hgs/Worldbank 12

Why aren’t we junking switches right now?

What made other services successful?

email: available within self-contained community (CS, EE)

web: initially used for local information

IM: instantly available for all of AOL

All of these . . .

• work with bare-bones connectivity (≥ 14.4 kb/s)

• had few problems with firewalls and NATs

• don’t require a reliable network

May 2001

hgs/Worldbank 13

Why aren’t we junking switches right now?

Telephone services are different:

• reliability expectation 99.9%↗ 99.999%

• PC not well suited for making/receiving calls – most residential handsets arecordless or mobile

• business sets: price incentive minor for non-800 businesses

• services, multimedia limited by PSTN interconnection

• initial incentive of access charge bypass fading (0.5c/min.)

• international calls only outside Western Europe and U.S.

May 2001

hgs/Worldbank 14

Reliability

• phone switch: downtime 120 seconds/year

• AOL: 88 hours/year for 1996

• ANS: 44 hours/year promised

• Ethernet switch: MTBF≈ 20 years

• router configuration, route flap

• on-line software upgrades

• end-system auto-configuration (already easier than ISDN. . . )

May 2001

hgs/Worldbank 15

Reliability: power

• more decentralized➠ harder to provide power coverage

• need power for Ethernet switches, phones –≈ 7W/phone (48V)

• Ethernet powering (spare pairs), tandem or integrated into switch

• also useful for wireless base stations

• Columbia approach: separate power circuit for wiring closets

May 2001

hgs/Worldbank 16

Reliability: denial-of-service

• denial-of-service and attacks more likely than with traditional phones

• but traditional phones (including 800#) also subject to auto-dialers

• different scenarios:

– external attack➠ can be filtered

– internal compromise➠ spoof DiffServ, RSVP

• disadvantage of integration: no secondary channel

• thus, maybe keep authorized RSVP “circuits”

May 2001

hgs/Worldbank 17

Quality of service issues

Three types of traffic:

loss delay bandwidth

(Web) data <5% (bursts ok) not critical peak

Streaming audio/video <5% (random) not critical avg.

Voice-over-IP <10% (random) < 150 ms avg.

May 2001

hgs/Worldbank 18

Sources of delay

processing queueing

end−system

switching delay

transmission

propagation

(5 us/km)

IFroute lookupclassification

output buffer lineoutput

routeroperating

system

decoding

playoutbuffer

soundcard

systemoperating

packetization

encoding(5−10 ms)

(10−30 ms) delay

load

May 2001

hgs/Worldbank 19

QoS: local area network

• typically, very low average utilization (few %)

• very little packet loss (a few packets a day)

• but long delay spikes (300 ms) due to Ethernet collisions if heavy file transfer

• ➠ avoid hubs

• ➠ Ethernet prioritization

May 2001

hgs/Worldbank 20

QoS: access network

• usually, bottleneck (1:10 concentration)

• usually, asymmetrically loaded, depending on web traffic

• solution: TOS marking (supported by most phones)

May 2001

hgs/Worldbank 21

QoS: wide-area network

• onaverage, enough bandwidth to most places

• however, bursts of loss➠ interruptions

• likely solutions:

DiffServ: works well for small number of predictable classes

IntServ: (RSVP)➠ interdomain difficult, security

MPLS: only single provider, additional complexity

May 2001

hgs/Worldbank 22

Architecture

• “classical” applications (web, file servers, SMTP): client-server

• client inside network, server often outside

• VoIP: every phone is a server

• classical applications: mostly single stream (except ftp)

• VoIP: control + data

May 2001

hgs/Worldbank 23

Address space

• about half the IPv4 address space is allocated

• ARIN hands out additional space if existing allocation is more than 80% used

• minimum of 25% initial usage and 50% within a year

• minimum for direct assignment is /20

• cost is about $0.30/year/host

May 2001

hgs/Worldbank 24

Network address translation

• commonly used for DSL, possibly multiple stages

• but: work well only for client-server, with server on fixed IP address

• need application-layer-gateway for each new service (or constrain new services)➠break service neutrality of Internet

• not a security mechanism

• makes VoIP deployment brittle

• makes network-merging difficult

May 2001

hgs/Worldbank 25

Regulatory issues

• E911 service: where is the IP address located?

• billing long-distance vs. local service➠ local service has to be self-supporting

• universal service = support for rural areas?

• infrastructure support fund?

• distinction of TV vs. telephone licensing and regulation?

May 2001

hgs/Worldbank 26

Internet telephony service models

• Internet “PBX”

• Internet Centrex

• Internet Carrier

➠ same basic equipment, but size of gateway varies

May 2001

hgs/Worldbank 27

Internet PBX

1

IP

0 0

T1, ISDN (BRI/PRI) or analog lines

SIP proxy server

Ethernet

ISP

May 2001

hgs/Worldbank 28

IP Centrex

Internet Heads Up Barber

IP

PSTNISP

Ralph’s Pretty Good Grocery

Chatterbox Cafe

May 2001

hgs/Worldbank 29

IP Carrier

0 0

IP

1

MGCPH.248

SIP

SS7

GW

GW

GW

GWGW

GW

GW

GW

El Paso

San Francisco

Bell Canada

Montreal

Verizon

PacificBell

DallasQwest

MCI

BellSouth

New York

Chicago

PacificBell

Denver

BellSouth

LA

May 2001

hgs/Worldbank 30

IETF VoIP Protocol Architecture

Signaling

TLSSCTP

IntServDiffServ

SLP

Directory/Discovery

master−slave

RTSP

QoS Transport

SPIRITS

LDAPDNS/enum TRIPMGCPH.248

RTP

Languages/APIsvoiceXMLCPL

servletssip−cgi

JAINParlay

peer−to−peer

PINT

SIP SDP

May 2001

hgs/Worldbank 31

IETF VoIP Protocol Architecture: Goals

• Leverage content-neutrality of Internet➠ more than just voice and legacy services➠ video, shared applications, multi-party text chat

• Imperceptible transition between communication modalities

• Extensible to presence, instant messaging and event notification

• Centrex lesson: user-controlled services

• Allow services in end systems and network servers

• Multiple levels of security: IPSec, TLS, application-layer

May 2001

hgs/Worldbank 32

Differences: Internet Telephony↔ POTS

• separate control, transport (UDP)➠ no triangle routing

• separate connectivity from resource availability

• separate services from bit transport

• datagram service➠ less bootstrapping

• in-band signaling➠ higher speed

• features network−→ end system: distinctive ringing, caller id, speed dialing,number translation, . . .➠ scaling

• features: intra-PBX = inter-LATA and general

• protocols: user-network = network-network signaling

May 2001

hgs/Worldbank 33

PSTN Legacies to Avoid

• E.164 numbers – might as well wear bar codes

• tones and announcements

• in-band signaling for features (DTMF)

• systems with user-interface knowledge (12 keys, voice)

• voice-only orientation (BICC, MGCP/Megaco)

• integration of bit transport and services

• service-specific billing➠ separate signaling & billing

• trusted networks without crypto

➠ confine PSTN knowledge to edge of network

May 2001

hgs/Worldbank 34

Invisible Internet Telephony

“VoIP” technology will appear in

• Internet appliances

• home security cameras, web cams

• 3G mobile terminals

• fire alarms and building sensors

• chat/IM tools

• interactive multiplayer games

• 3D worlds: proximity triggers call

May 2001

hgs/Worldbank 35

Carrier and Enterprise VoIP

Traditionally,

• separate signaling: ISDN, CAS vs. ISUP

• service restrictions, e.g., CF inefficient

Now, largely the same:

• hosted (“ASP”), run own servers or combinations

• carrier: multiple domains per server

• if not outsourced, TRIP for gateway selection

May 2001

hgs/Worldbank 36

Peer-to-Peer Architecture

• “IP telephones”, gateways, PCs with software = IP hosts

• mayuse servers (H.323 gatekeepers, SIP proxy servers)

• end system fully state-aware

• protocols for call setup: H.323 or SIP

• more flexible user interface

May 2001

hgs/Worldbank 37

Implementing Services

end system server

caller id x –

call forwarding, follow me x x

three-way calling x –

distinctive ringing x –

69 x ?

no solicitation x x

do not disturb x x

call curfew ? x

May 2001

hgs/Worldbank 38

Master-Slave Architecture

• master-slave: MGC controls one or more gateways

• allows splitting of signaling and media functionality

• “please send audio from circuit 42 to 10.1.2.3”

• uses MGCP (implemented) or Megaco/H.248 (standardized, but just beginning tobe implemented)

• gateway can be residential

• basis of PacketCable NCS (network control system) architecture

• service creation similar to digital PBX or switch

• −→ can charge for caller id, call waiting

May 2001

hgs/Worldbank 39

MGCP Architecture

MGCP/Megaco SS7

SIP SIP

H.323 H.323 ISUP

MGCP/Megaco

TCAP

RTP

TGW

SCP

STP

RGW

RGW

MG controller SS7 gwycall agent call agent

MG controller

InternetPSTN

• for all but small system, need peer-to-peer!

• MGCP system can call SIP or H.323 end system

• all use RTP to transfer data

May 2001

hgs/Worldbank 40

Deployment scenarios

Inside-out: IP as transmission medium➠ transport between switches

Outside-in: IP in corporate networks, with circuit-switched access to PSTN

Wild card: 3G wireless

May 2001

hgs/Worldbank 41

SIP 101

• SIP = signaling protocol for establishing sessions/calls/conferences/. . .

• session = audio, video, game, chat, . . . – described by SDP carried in SIP message

1. called server may map name touser@host

2. callee accepts, rejects, forward (→ new address)

3. if new address, go to step 1

4. if accept, caller confirms

5. . . . conversation . . .

6. caller or callee sendsBYE

May 2001

hgs/Worldbank 42

SIP stack

signaling

media

maytrigger

RTPUDP

RTP

sets upSDPSIP

UDP

SIP

RSVPRSVP

SDP

LDAP

DNS

TRIPaddresslookup

PSTN gateway lookup

next−hop

May 2001

hgs/Worldbank 43

SIP Components

entity does examples

proxy server forward calls firewall controller, “call router”

redirect server “application server”

user agent end system SIP phone, gateway, “softswitch”

registrar location mgt. mobility support

Roles are changeable, on a request-by-request basis

May 2001

hgs/Worldbank 44

SIP Operation in Proxy Mode

9 media stream

4

8

7

1

[email protected]

6

5

3

?

henn

ing

hgs@

play

tune

play

cs.columbia.edu

200 OK

location server

200 [email protected]−berlin.de

cs.tu−berlin.de INVITE hgs@play

ACK hgs@play

2

May 2001

hgs/Worldbank 45

SIP Operation in Redirect Mode

1

4

32

6

7

8

5

?

henn

ing

ACK [email protected]

INVITE [email protected]

302 Moved temporarily colu

mbi

a.ed

u

locationserver

columbia.edu

hgs

tu-berlin.de

INVITE [email protected]

200 OK

ACK [email protected]

ieee.org

Contact: [email protected]

May 2001

hgs/Worldbank 46

SIP Personal Mobility

[email protected]:12015551234

[email protected]

tel:12128541111

[email protected]

[email protected]

[email protected]

[email protected]

(also used by [email protected])

yahoo.com

columbia.edu

May 2001

hgs/Worldbank 47

SIP Forking Proxies

INVITE [email protected]

[email protected]

INVITE bob@b

[email protected]

200 OK

INVITE carol@c

ACK

BYE [email protected]

200 OK

a.wonderland.com

macrosoft.com

CANCEL bob@c

May 2001

hgs/Worldbank 48

SIP Advanced Features

• forking

• extensibility: new headers, methods, bodies

• security: web-like, PPP/CHAP or PGP

• multicast-capable

• support for personal, session, terminal, service mobility

• caller preferences: direct calls based on properties

May 2001

hgs/Worldbank 49

More SIP Internet Telephony Services

• camp-on without holding a line

• short message service (“instant messaging”)

• schedule call into the future

• call with expiration date

• add/remove parties to/from call➠ mesh

• “buddy lists”

May 2001

hgs/Worldbank 50

Internet Telephony – as Part of Internet

• universal identifier: email address = SIP address = IM address

• SIP URLs in web pages

• forward to email, web page, chat session, . . .

• include web page in invitation response (“web IVR”)

• third-party control of calls via scripts,

• include vCard, photo URL in invitation

• user-programmable services: CGI (RFC 3050), CPL, servlets

May 2001

hgs/Worldbank 51

Example: Pingtel SIP phone

May 2001

hgs/Worldbank 52

Example: Cisco and 3Com SIP phones

Cisco 3Com ($395 list)

May 2001

hgs/Worldbank 53

Example: Columbia CS Phone System

Expand existing PBX via IP phones, with transparent connectivityCisco 7960

RTSP

sipum

PhoneJack interface

RTPSIP

LDAP server

MySQL

sipd

T1/E1

Sun Solaris

sipconf

PC Linux/FreeBSD/NT

sipc

rtspd

e*phone

mediaRTSP

server

user database

server

proxy/redirect server

messagingunified

conferencing

SIP−H.323converter

server(MCU)

sip−h323

Cisco2600

802.11bwireless

Pingtel

NortelMeridian

plug’n’sip

PBX

May 2001

hgs/Worldbank 54

sipd single sign-on for account creation and modification

May 2001

hgs/Worldbank 55

sipd contact management

May 2001

hgs/Worldbank 56

Programming Internet Multimedia Services

Primarily, creation, forwarding, proxying, rejection of calls

APIs (Parlay, JAIN): protocol-neutral (SIP, H.323, ISUP), but may be least commondenominator

SIP CGI: use Perl and other scripting languages; easy to learn

Servlets: Java only; faster than cgi; limited functionality

CPL: = XML-based language foruserservice creation; portable across providers, butnot all services

• Protocol-neutral: Parlay, JAIN, CPL

• Call creation: Parlay, JAIN

• VoiceXML is for voice-service creationafter call setup

May 2001

hgs/Worldbank 57

Conclusion

• integrated networks: why? why not?

• Internet telephony: architecture and operational issues

• SIP for creating enhanced services

May 2001

hgs/Worldbank 58

For more information. . .

SIP: http://www.cs.columbia.edu/sip

RTP: http://www.cs.columbia.edu/˜hgs/rtp

Papers: http://www.cs.columbia.edu/IRT

May 2001