+ All Categories
Home > Documents > Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators...

Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators...

Date post: 24-Sep-2020
Category:
Upload: others
View: 6 times
Download: 1 times
Share this document with a friend
22
An introduction to Session Initiation Protocol (SIP) Powered by: Ahmad Seyar, Khwaja Monib, Moh. Zubair & Habibullah.
Transcript
Page 1: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

An introduction to

Session Initiation Protocol(SIP)

Powered by: Ahmad Seyar,

Khwaja Monib,

Moh. Zubair &

Habibullah.

Page 2: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

Agenda

What is SIP?

SIP overview—Components, addressing, and

invitations.

Messages—Headers, requests, and responses.

Basic operations—Proxy and redirect server

operation.

Page 3: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

What is SIP?

The Session Initiation Protocol (SIP) is an application-layer

signaling-control protocol used to establish, maintain, and

terminate multimedia sessions.

Multimedia sessions include Internet telephony, conferences,

and other similar applications involving such media as audio,

video, and data.

SIP supports unicast and multicast sessions.

You can establish and terminate communications using the

following five SIP facets:

– user location

– user capability

– user availability

– call setup

– call handling.

Page 4: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

SIP Overview

User Agents:

User agents are client end-system applications that contain both a

user-agent client (UAC) and a user-agent server (UAS), known as

client and server.

Client:

Initiates SIP requests and acts as the user's calling agent.

Server:

Receives requests and returns responses on behalf of the user;

acts as the user-called agent.

Page 5: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

SIP Overview

Image

Page 6: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

SIP Overview

Network Servers :

Two types of SIP network servers exist: proxy servers and redirect

servers later will be discussed.

Addressing:

SIP addresses, also called SIP Universal Resource Locators

(URLs)

Exist in the form of users@domain. Similar to e-mail addresses

The user portion is user name or telephone number, the next

part is domain name or network address.

Following example explains two possible SIP URLs:

sip:[email protected]

sip:[email protected]

Page 7: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

SIP Overview

Locating a Server :

A client can send a SIP request either directly, to a locally

configured proxy server, or to the IP address and port of the

corresponding SIP URL.

SIP Transactions :

After addressing is resolved, the client sends one or more SIP

requests and receives one or more responses from the

specified server.

For simplicity and consistency, the header fields in all request

messages match the header fields in all response messages.

Page 8: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

SIP Overview

Locating a User :

A called party might move from the corporate local-area

network (LAN) to a home office connected through his or her

Internet.

The action and result of locating a user depends on the type of

SIP server being used.

A SIP redirect server simply returns the complete list of

locations and enables the client to locate the user directly.

A SIP proxy server can attempt the addresses in parallel until

the call is successful.

Page 9: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

SIP Messages

Two kinds of SIP messages exist:

-Requests initiated by clients.

-Responses returned from servers.

Every message contains a header that describes the details of

communication.

SIP is a text-based protocol with message syntax and header

fields identical to Hypertext Transfer Protocol (HTTP).

SIP messages are sent over TCP or UDP with multiple

messages carried in a single TCP connection or UDP

datagram.

Page 10: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

SIP Messages

Message Headers :

You use message headers to specify the calling party, called party, route,

and message type of a call. The four groups of message headers are as

follows:

General headers:

Apply to requests and responses.

Entity headers:

Define information about the message body type and length.

Request headers:

Enable the client to include additional request information.

Response headers:

Enable the server to include additional response information.

Page 11: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

SIP Messages

Message Requests:

SIP communication features six kinds of message requests:

INVITE:

This method indicates that the user or service is invited to participate in a

session.

ACK:

These requests correspond to an INVITE request.

OPTIONS:

This method enables you to query and collect user agents and network

server capabilities.

BYE:

This method is used by calling and called parties to release a call. Before

actually releasing the call, the user agent sends this request to the server

indicating the desire to release the session.

Page 12: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

SIP Messages

Message Requests (con…)

CANCEL:

This request enables user agents and network servers to cancel

any in-progress request. This does not affect completed requests

in which final responses were already received.

REGISTER:

This method is used by clients to register location information with

SIP servers.

Page 13: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

SIP Messages

Message Responses:

They are sent in response to requests and indicate call

success or failure, including the status of the server.

The are as follow:

-Informational.

-Success.

-Client-Error.

-Server-Error.

-Global Failure.

Page 14: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

Basic Operation of SIP

SIP Servers handle incoming requests in two ways.

1-Proxy Servers

2-Redirect Servers

Proxy Server:

Acts on behalf of other clients and contains both client and server

functions. A proxy server interprets and can rewrite request

headers before passing them on to other servers. Rewriting the

headers identifies the proxy as the initiator of the request and

ensures that replies follow the same path back to the proxy instead

of the client.

Page 15: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

Request and response made by Proxy Server

Basic Operation of SIP

Page 16: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

Basic Operation of SIP

The operational steps in the proxy mode needed to bring a two-

way call to succession are as follows:

1. The proxy server accepts the INVITE request from the client.

2. The proxy server identifies the location by using the supplied

addresses and location services.

3. An INVITE request is issued to the address of the location

returned.

4. The called party user agent alerts the user and returns a

success indication to the requesting proxy server.

5. An OK (200) response is sent from the proxy server to the

calling party.

6. The calling party confirms receipt by issuing an ACK request,

which is forwarded by the proxy or sent directly to the called party.

Page 17: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

Basic Operation of SIP

Image

Page 18: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

Basic Operation of SIP

Redirect Server:

Accepts SIP requests and sends a redirect response

back to the client containing the address of the next

server. Redirect servers do not accept calls, nor do

they process or forward SIP requests.

Page 19: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

Basic Operation of SIP

The operational steps in the redirect mode to bring a two-way call

to succession are as follows:

1. The redirect server accepts the INVITE request from the calling

party and contacts location services with the supplied information.

2. After the user is located, the redirect server returns the address

directly to the calling party. Unlike the proxy server, the redirect

server does not issue an INVITE.

3.The user agent sends an ACK to the redirect server

acknowledging the completed transaction.

4. The user agent sends an INVITE request directly to the address

returned by the redirect server.

5. The called party provides a success indication (200 OK), and

the calling party returns an ACK.

Page 20: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

Basic Operation of SIP

Image

Page 21: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

Summary

1-SIP Overview:

-User Agents.

-Network Servers.

-Addressing.

-Locating a Server.

-SIP Transactions.

-Locating a User.

2-SIP Messages:

-Message Headers.

-Message requests.

-Message Response.

3-Basic Operation of SIP:

-Proxy Server Operation.

-Redirect Server Operation.

Page 22: Session Initiation Protocol (SIP) · SIP addresses, also called SIP Universal Resource Locators (URLs) Exist in the form of users@domain. Similar to e-mail addresses The user portion

Thank you

Any Question!


Recommended