Docsity

SIP: Session Initiation Protocol and Multimedia Networking, Slides of Computer Networks

Partial preview of the text

Download SIP: Session Initiation Protocol and Multimedia Networking and more Slides Computer Networks in PDF only on Docsity!

Lecture 20

Multimedia Networking

(cont)

slides are modified from Dave Hollinger

SIP: Session Initiation Protocol [RFC 3261]

SIP long-term vision:

  • all telephone calls, video conference calls take

place over Internet

  • people are identified by names or e-mail

addresses, rather than by phone numbers

  • you can reach callee,
    • no matter where callee roams,
    • no matter what IP device callee is currently using

Setting up a call to known IP address

 Alice’s SIP invite message indicates her port number, IP address, encoding she prefers to receive (PCM ulaw)

 Bob’s 200 OK message indicates his port number, IP address, preferred encoding (GSM)

 SIP messages can be sent over TCP or UDP;  here sent over RTP/UDP.

 default SIP port number is 5060.

Setting up a call (more)

  • codec negotiation:
    • suppose Bob doesn’t have

PCM ulaw encoder

  • Bob will instead reply with

606 Not Acceptable Reply,

listing his encoders Alice

can then send new INVITE

message, advertising

different encoder

  • rejecting a call
    • Bob can reject with

replies ā€œbusy,ā€ ā€œgone,ā€

ā€œpayment required,ā€

ā€œforbiddenā€

  • media can be sent over RTP

or some other protocol

Name translation and user locataion

  • caller wants to call callee, but

only has callee’s name or e-

mail address.

  • need to get IP address of

callee’s current host:

  • user moves around
  • DHCP protocol
  • user has different IP devices
    • PC, PDA, car device
      • result can be based on:
        • time of day
          • work, home
        • Caller
          • don’t want boss to call you at home
        • status of callee
          • calls sent to voicemail when callee is already talking to someone

Service provided by SIP servers:

  • SIP registrar server
  • SIP proxy server

SIP Registrar

REGISTER sip:domain.com SIP/2. Via: SIP/2.0/UDP 193.64.210. From: sip:[email protected] To: sip:[email protected] Expires: 3600

r when Bob starts SIP client, client sends SIP

REGISTER message to Bob’s registrar server

r similar function needed by Instant Messaging

Register Message:

Example

Caller [email protected] with places a call to [email protected] (1) Jim sends INVITE message to umass SIP proxy. (2) Proxy forwards request to upenn registrar server. (3) upenn server returns redirect response, indicating that it should try [email protected]

(4) umass proxy sends INVITE to eurecom registrar. (5) eurecom registrar forwards INVITE to 197.87.54.21, which is running keith’s SIP client. (6-8) SIP response sent back (9) media sent directly between clients. Note: also a SIP ack message, which is not shown.

SIP client 217.123.56.

SIP client 197.87.54.

SIP proxy umass.edu

SIP registrar upenn.edu

SIP registrar eurecom.fr

1

2 (^3 )

5 6

7 8

9

Chapter 7 outline

7.1 multimedia networking

applications

7.2 streaming stored audio and

video

7.3 making the best out of best

effort service

7.4 protocols for real-time

interactive applications

RTP, RTCP, SIP

7.5 providing multiple

classes of service

7.6 providing QoS

guarantees

Multiple classes of service:

scenario

H1 R1 R

H

H

H

R1 output^ 1.5 Mbps link interface queue

Scenario 1: mixed FTP and audio

• Example: 1Mbps IP phone, FTP share 1.

Mbps link.

– bursts of FTP can congest router, cause audio loss

– want to give priority to audio over FTP

packet marking needed for router to distinguish

between different classes;

and new router policy to treat packets accordingly

Principle 1

R1 R

Principles for QOS Guarantees

(more)

• Allocating fixed (non-sharable) bandwidth

to flow: inefficient use of bandwidth if

flows doesn’t use its allocation

While providing isolation, it is desirable to use

resources as efficiently as possible

Principle 3

R

R

1.5 Mbps link

1 Mbps phone

1 Mbps logical link

0.5 Mbps logical link

Scheduling And Policing

Mechanisms

• scheduling: choose next packet to send on link

• FIFO (first in first out) scheduling: send in

order of arrival to queue

– real-world example?

– discard policy: if packet arrives to full queue: who

to discard?

  • Tail drop: drop arriving packet
  • priority: drop/remove on priority basis
  • random: drop/remove randomly

Scheduling Policies: still more

round robin scheduling:

• multiple classes

• cyclically scan class queues, serving one

from each class (if available)

• real world example?

Scheduling Policies: still more

Weighted Fair Queuing:

• generalized Round Robin

• each class gets weighted amount of service

in each cycle

• real-world example?