Академический Документы
Профессиональный Документы
Культура Документы
• What is VoIP?
• Toll ByPass
Voice over IP - VoIP • RTP
• Control Protocols
• MGCP
SMD151
• H323
Peter.Parnes@ltu.se
• SIP in detail
1/66 2/66
• The analog audio stream is encoding in a • ISP/Carrier : Toll Bypass services, VOIP wholesale,
using equipment by vendors such as Cisco, Lucent,
digital format, with possible compression, Avaya, etc.
and encapsulating it in IP for transport
over your LAN/WAN or the public internet • Telco Grade : Local service, Last mile delivery, total
phone services, high dependability and availability.
3/66 4/66
1
The Guts RTP
• RTP (Real-Time Transport Protocol) • RTP data packet header
• RTCP (Real-Time Control Protocol)
• RTP is a UDP stream with no intelligence
for QoS or resource reservation
• Contains a packet number for detection of
packet loss and re-sequencing of out of
order packets.
• Unidirectional : two streams in any call
7/66 8/66
9/66 10/66
• SIP is a textual based client/server protocol. This • MGCP : Media Gateway Control Protocol.
makes debugging easy as it’s invite etc
messages are human readable.
INVITE sip:021326001@203.109.130.94:5060;user=phone SIP/2.0 • MGCP is a master/slave protocol where all
Via: SIP/2.0/UDP 10.30.60.20:5060
From: "Mr Anderson" <sip:099639951@10.30.60.20:5060>;tag=1ACC.8D00 the smarts resides in the gateway
To: <sip:021326001@203.109.130.94:5060>;tag=359870F0-16CD
Call-ID: 00C0.95C9.5818.4013.1ACC.8D00@10.30.60.20 controller and not the gateway.
CSeq: 5257 ACK
Content-Length: 0
Max-Forwards: 70
Contact: sip:099639951@10.30.60.20:5060
11/66 12/66
2
Control Protocols – H323 Control Protocols – H323
value H323_UserInformation ::=
{
h323-uu-pdu
{
h323-message-body releaseComplete :
{
protocolIdentifier { 0 0 8 2250 0 4 }
callIdentifier
{
guid '3E940C894E1311D8A33E919F0987C365'H
}
}
h245Tunneling TRUE
}
}
13/66 14/66
15/66 16/66
17/66 18/66
3
Control Protocols Summary
• SIP • What is VoIP?
• MGCP • Toll ByPass
• H323 • RTP
• Skinny : Cisco’s IP phone control protocol • Control Protocols
• H323
• MGCP
• SIP
19/66 20/66
?
• Methods Used in SIP
• SIP messages & responses
• Security
• Summary
• References
Nishita Vora Pandya
21/66 22/66
4
SIP Functionality (cont.) Development of SIP
• SIP can also initiate multi-party calls • SIP developed by Handley, Schulzrinne, Schooler, and
Rosenberg
using a multipoint control unit (MCU) or - Submitted as Internet-Draft 7/97
fully-meshed interconnection instead of • Assigned RFC 2543 in 3/99
multicast. • Goals: Re-use of & Maximum Interoperability with
existing protocols
• You can try in Marratech…
• Internet telephony gateways that connect • Alternative to ITU’s H.323
Public Switched Telephone Network - H.323 used for IP Telephony since 1994
- Problems: No new services, addressing, features
(PSTN) parties can also use SIP to set up
- Concerns: scalability, extensibility
calls between them.
25/66 26/66
27/66 28/66
29/66 30/66
5
SIP Operation Step 1:SIP Addressing
31/66 32/66
33/66 34/66
• Once the host part has been resolved to a SIP server, - • Step 1: Caller Issues Initial INVITE Request
client sends 1 / more SIP requests to that server
• receives 1 / more responses from the server. • Step 2: Callee Issues Response
• SIP Request-line (Messages) defined as: • Step 3: Caller Receives Response to Initial
<Method> <SP> Request-URI <SP>SIP-Version
<CRLF> request
(SP=Space, CRLF=Carriage Return and Line Feed) • Step 4: Caller or Callee Generate Subsequent
(Method = “INVITE” | “ACK” | “OPTIONS” | requests
“BYE” | “CANCEL” | “REGISTER”)
• Example: • Step 5: Receive Subsequent Requests
INVITE sip:peter@parnes.com SIP/2.0 • Step 6: BYE to end session
• Step x: CANCEL may be issued
35/66 36/66
6
Simple Example Methods (cont.)
• INVITE: Initiates sessions
- Session description included in message body
INVITE
• Re-INVITEs used to change session state
200 OK
• ACK confirms session establishment, can only
ACK be used with INVITE
• BYE terminates a session (hanging up)
Audio, video, ...
• CANCEL cancels a pending invite
• REGISTER: binds a permanent address to
BYE
current location, may convey user data
• OPTIONS: capability inquiry
200 OK
37/66 38/66
INVITE
200 OK
•
•
•
REGISTER
INVITE
302 Redirect
200 OK
39/66 40/66
41/66 42/66
7
Relay and Topology Hiding SIP Negotiation
• Optimistic Call
43/66 44/66
REGISTER
45/66 46/66
47/66 48/66
8
SIP Responses SIP Responses (cont.)
• 1xy – Informational
• SIP Responses defined as (HTTP-style):
request received , continuing to process request
SIP-Version SP Status-Code SP Reason-Phrase • 2xy – Success
CRLF action successfully recvd., understood & accepted
(SP=Space, CRLF=Carriage Return and Line Feed) • 3xy – Redirection
Further action to be taken to complete the request
• Example: • 4xy – Client error
SIP/2.0 404 Not Found request contains syntax error or cant be completed at this
server
• First digit gives Class of response • 5xy – Server error
server fails to fulfill an apparently valid request
• 6xy – global failure,
request is invalid at any server
49/66 50/66
• The Request headers include a Via field • Via headers are used for routing SIP messages
• The Via field indicates the path taken by the request • Requests
• Request initiator puts address in Via header
so far.
• Servers check Via with sender’s address, then add own address,
• Every proxy adds a Via Header with its address then forward. (if different, add “received” parameter)
to make sure that responses within a transaction • Responses
• Response initiator copies request Via headers.
take the same path (to avoid loops, or to make
• Servers check Via with own address, then forward to next Via
sure that same firewall will be hit on the way address
back) • All Via headers are copied from request to response in
• This prevents request looping and ensures replies order
take the same path as the requests, which assists in • Response is sent to address in top Via header
firewall traversal and other unusual routing situations.
53/66 54/66
9
Via Header (cont.) VIA Example
55/66 56/66
57/66 58/66
59/66 60/66
10
Features and Benefits Features and Benefits(cont.)
Feature Benefits Feature Benefit
Internet SIP-based systems can take advantage of the
Distributed -De-centralized intelligence permits more
Enabled growth of the Internet. Translating gateways functionality functionality within each component.
permit SIP-based systems to contact parties on
-- Changes made to specific components have a
the Public Switched Telephone Network minor impact on the rest of the system. It is
(PSTN) without being encumbered by its legacy possible to connect one SIP phone to another
standards. with an Ethernet cable & make calls between the
Scalability Architecture permits inexpensive scaling. H/W sets without the aid of any other server modules.
& S/W requirements for adding new users to - The other system components become useful
SIP-based systems is greatly reduced. when the network requires more than two
phones.
Simplicity SIP stack is smaller. SIP can be considered as
a simple toolkit that enables smart endpoints,
gateways, processes & clients to be built and
implemented 61/66 62/66
63/66 64/66
But … Questions?
• SIP is not:
•Going to make PSTN inter-working easy
?
•Going to solve all IP Telephony issues (QoS)
• Secure !?
65/66 66/66
11