Académique Documents
Professionnel Documents
Culture Documents
2013-02-27
TS Korea
Daniel Yoo
What is SIP?
SIP : Session Initiation Protocol
SIP is used for creating, modifying and terminating two-party or multiparty sessions.
It is a text-based protocol, incorporating many elements of the HTTP and the SMTP.
SIP Method
Request name Description Defined in
INVITE Indicates a client is being invited to participate in a call session. RFC 3261
ACK Confirms that the client has received a final response to an INVITE request. RFC 3261
BYE Terminates a call and can be sent by either the caller or the callee. RFC 3261
CANCEL Cancels any pending request. RFC 3261
OPTIONS Queries the capabilities of servers. RFC 3261
REGISTER Registers the address listed in the To header field with a SIP server. RFC 3261
PRACK Provisional acknowledgement. RFC 3262
SUBSCRIBE Subscribes for an Event of Notification from the Notifier. RFC 3265
NOTIFY Notify the subscriber of a new Event. RFC 3265
PUBLISH Publishes an event to the Server. RFC 3903
INFO Sends mid-session information that does not modify the session state. RFC 6086
REFER Asks recipient to issue SIP request (call transfer.) RFC 3515
MESSAGE Transports instant messages using SIP. RFC 3428
UPDATE Modifies the state of a session without changing the state of the dialog. RFC 3311
SIP Response
Success (2xx): The action was successfully received, understood, and accepted.
Redirection (3xx): Further action needs to be taken (typically by sender) to complete the request.
Client Error (4xx): The request contains bad syntax or cannot be fulfilled at the server.
Server Error (5xx): The server failed to fulfill an apparently valid request.
180 Ringing
This message is trying to alert what the target UE is received the INVITE message.
This response may be used to initiate local ringback.
182 Queued
The called party is temporarily unavailable, but the server has decided to queue the call rather than reject it.
200 OK
The request has succeeded.
SIP Response 3xx
300 Multiple Choices
The address in the request resolved to several choices, each with its own specific location, and the user (or UA) can
select a preferred communication end point and redirect its request to that location. The response MAY include a
message body containing a list of resource characteristics and location(s) from which the user or UA can choose the
one most appropriate, if allowed by the Accept request header field.
401 Unauthorized
The request requires user authentication.
403 Forbidden
The server understood the request, but is refusing to fulfill it.
410 Gone
The requested resource is no longer available at the server and no forwarding address is known. This condition is
expected to be considered permanent. If the server does not know, or has no facility to determine, whether or not
the condition is permanent, the status code 404 (Not Found) SHOULD be used instead.
485 Ambiguous
The Request-URI was ambiguous. The response MAY contain a listing of possible unambiguous addresses in Contact
header fields.
493 Undecipherable
The request was received by a UAS that contained an encrypted MIME body for which the recipient does not possess
or will not provide an appropriate decryption key. This response MAY have a single body containing an appropriate
public key that should be used to encrypt MIME bodies sent to this UA.
SIP Response 5xx
501 Not Implemented
The server does not support the functionality required to fulfill the request. This is the appropriate response when a
UAS does not recognize the request method and is not capable of supporting it for any user.
603 Decline
The callee's machine was successfully contacted but the user explicitly does not wish to or cannot participate.
- Media type
- type of codec
- transport information (ex : RTP and port)
- sampling information of codec
- etc
What is RTP & RTCP?
RTP : Real-time Transport Protocol (RFC 3550)
RTP is a standardization packet format for delivering Audio and Video over IP network.
While RTP carries the media streams (e.g., audio and video), RTCP is used to monitor
transmission statistics and quality of service (QoS) and aids synchronization of multiple streams.
RTP QoS (1)
1) Delta delay & Jitter
T1 S1
S2
T2 S3
T3 S4
T4 S5 D(i, j ) = (T j Ti ) ( S j S i )
T5 J = J + (| D(i 1, i ) | J ) / 16
Sn - Sn-1 = 1 normal
Sn - Sn-1 > 1 packet loss
Sn - Sn-1 < 1 out of order
Sn - Sn-1 = 0 duplication
T1 S1
S2
T2 S3
T3 S4
T4 S5 D(i, j ) = (T j Ti ) ( S j S i )
T5 J = J + (| D(i 1, i ) | J ) / 16
Sn - Sn-1 = 1 normal
Sn - Sn-1 > 1 packet loss
Sn - Sn-1 < 1 out of order
Sn - Sn-1 = 0 duplication
R = Ro Is Id Ie + A
Advantage factor
Base R value
- Noise level
Range of R-factor
R-Factor MOS User Experience
90 43 (4.3) Excellent
80 40 (4.0) Good
70 36 (3.6) Fair
60 31 (3.1) Poor
50 26 (2.6) Bad
RTCP QoS (1)
RTCP RR(Receiver Report) report about statistics of QoS .
It is QoS until when mobile received RTP from started sequence number to 30654
Lost, Jitter are calculated and reported by RR report
Last SR timestamp (LSR) and Delay since last SR timestamp (DLSR) are used for calculating of RTT.
RTCP QoS (2)
LSR = T1
R1
DLSR = R2 R1
R2
T2