Giới thiệu về voice over IP, các giao thức liên quan - Pdf 12

1
Voice over IP
Protocols
2
MỤC ĐÍCH
Giớithiệumộtcáchtổng quan về các giao thứcliên
quan đếnVoIP:
¾ SIP
¾ H.323
¾ MGCP
¾RTP/RTCP
2
3
RTCPRTP
SIP, H.323 and MGCP
IP
MGCP
Call Control and Signaling Signaling and
Gateway Control
Media
H.225
Q.931
H.323
TCP
RAS
UDP
SIPH.245
Audio/
Video
RTSP
Session Intiation

Registrar
Server
User Agent
Proxy
Server
Gateway
PSTN
SIP Components
Proxy
Server
8
User Agents
 Là ứng dụng mà có thể thiếtlập, nhậnvàkết
thúc cuộcgọi.
 Chúngcóthể là điệnthoạiIP, phầnmềmchạy
trên máy vi tính cá nhân, hay là sự kếthợpcủa
một card điềuhợp điệnthoạitương tự vớimột
điệnthoạitiêuchuẩn.
 User Agent Clients (UAC) – Đơnvị dùng để thiếtlập
cuộcgọi.
 User Agent Server (UAS) – Đơnvị dùng để nhận
cuộcgọi.
 Cả UAC và UAS đềucóthể kết thúc mộtcuộcgọi.
5
9
SIP SERVER
SIP Server bao gồm 4 nhóm sau :
 Proxy Server
 Location Server
 Redirect Server

13
Registrar Server
 Là server tiếpnhậncácbảntin yêu
cầuREGISTER.
 Register server có thể hỗ trợ xác nhận.
 Registrar server thường được đặtcùng
vớimột proxy hoặc redirect server và đưa
ra các dịch vụđịnh vị (location services).
14
SIP Messages – Methods and
Responses
 SIP Methods:
 INVITE – Thiếtlậpmộtcuộc
gọibằng việcmời user tham
gia một phiên.
 ACK – Xác nhậnrằng client
đãnhận đáp ứng cuối cùng(
từ một INVITE request).
 BYE – Chỉ ra điểmkết thúc
củacuộcgọi.
 CANCEL – Hủymộtyêucầu
đang diễnra.
 REGISTER – Đăng ký user
agent.
 OPTIONS – Được dùng để
truy vấnkhả năng củamột
server.
 SIP Responses:
 1xx – Báo hiệurằng yêu cầu
đang đượctiến hành.

header field.
200 –OK.
Proxy/
Registration
Server
SIP Phone
User
Location/
Redirect
Server
REGISTER REGISTER
200
200
16
Simplified SIP Call Setup and
Teardown
302
(Moved Temporarily)
INVITE
200 (OK)200 (OK)
ACK
INVITE
302
(Moved Temporarily)
ACK
INVITE
180 (Ringing)180 (Ringing)180 (Ringing)
200 (OK)
ACKACK ACK
RTP MEDIA PATH

Terminal
Gateway
Packet Based
Networks
Multipoint
Control Unit
Gatekeeper
Circuit Switched
Networks
20
H.323 Terminals
 Thiếtbịđầucuối H.323 là thiếtbị có khả
năng truyền thông hai chiềuvànóphảihỗ
trợ các thành phần sau:
 H.225 call control signaling.
 H.245 control channel signaling.
 RTP/RTCP protocols for media packets.
 Audio codecs.
¾ Video codecs support is optional.
11
21
H.323 Gateway
 Nhiệmvụ của Gateway là thựchiệnkết
nốigiữa hai mạng khác nhau (H323
network and non-H323 network).
 Ví dụ
Một gateway cung cấpdịch vụ kếtnốigiữa
các thành phần trong mạng chuyểnmạch gói
(ví dụ mạng IP) và và mạng chuyểnmạch
kênh (ví dụ mạng PSTN).

 Một MCU bao gồm:
 Multipoint Controller (MC) – cung cấpcácchứcnăng
điềukhiển( điềutiếtkhả năng audio, video, data giữa
các thiếtbịđầucuối theo giao thức H245 ).
 Multipoint Processor (MP) – nhậnvàxử lý audio,
video và/hoặc dòng dữ liệu.
13
25
H.323 là mộtchồng giao thức
 Call Control and Signaling
 H.245 - Capabilities advertisement,
media channel establishment, and
conference control.
 H.225
 Q.931 - call signaling and call setup.
 RAS - registration and other admission
control with a gatekeeper.
Call Control and
Signaling
Data/FaxMedia
IP
UDP
RTP
Audio
Codec
G.711
G.723
G.729
Video
Codec

27
H.323 Components and
Signaling
 H.245 – A protocol for capabilities advertisement, media channel establishment and conference
control.
 H.225 - Call Control.
 - Q.931 – A protocol for call control and call setup.
 - RAS – Registration, admission and status protocol used for communicating between an H.323
endpoint and a gatekeeper.
PSTN
Gatekeeper
Terminal
H.225/RAS messages
over RAS channel
Gateway
H.245 messages over
call control channel
H.225/Q.931 messages over
call signaling channel
H.225/RAS messages
over RAS channel
H.225/Q.931 (optional) H.225/Q.931 (optional)
H.245 messages (optional)
H.245 messages (optional)
28
Simplified H.323 Call Setup
 Both endpoints have previously
registered with the gatekeeper.
 Terminal A initiate the call to the
gatekeeper. (RAS messages are

Note: This diagram only illustrates a simple
point-to-point call setup where call signaling is
not routed to the gatekeeper. Refer to the H.323
recommendation for more call setup scenarios.
15
29
Versions of H.323
Version Reference for key feature summary
H.323 Version 3 http://www.packetizer.com/iptel/h323/whatsnew
_v3.html
Date
H.323 Version 1 New release. Refer to the specification.
http://www.packetizer.com/iptel/h323/
May 1996
H.323 Version 2 http://www.packetizer.com/iptel/h323/whatsnew
_v2.html
January 1998
September 1999
H.323 Version 4 November 2000 http://www.packetizer.com/iptel/h323/whatsnew
_v4.html
30
SIP and H.323
H.323SIP
ITU.IETF.
Peer-to-Peer. Peer-to-Peer.
Telephony based. Borrows call
signaling protocol from ISDN
Q.SIG.
Internet based and web centric.
Borrows syntax and messages

17
33
Components
 Call agent or media gateway
controller
 Provides call signaling,
control and processing
intelligence to the gateway.
 Sends and receives
commands to/from the
gateway.
 Gateway
 Provides translations
between circuit switched
networks and packet
switched networks.
 Sends notification to the call
agent about endpoint
events.
 Execute commands from
the call a
g
ents.
Call Agent or
Media Gateway
Controller
(MGC)
Call Agent or
Media Gateway
Controller

Call Agent
Media Gateway Controller
MGCP MGCP
RTP/RTCP
18
35
Đặc điểmcủaMGCP
 MGCP:
 A master/slave protocol.
 Assumes limited intelligence at the edge (endpoints) and
intelligence at the core (call agent).
 Used between call agents and media gateways.
 Differs from SIP and H.323 which are peer-to-peer
protocols.
 Interoperates with SIP and H.323.
36
MGCP, SIP and H.323
 MGCP divides call setup/control
and media establishment
functions.
 MGCP does not replace SIP or
H.323. SIP and H.323 provide
symmetrical or peer-to-peer call
setup/control.
 MGCP interoperates with H.323
and SIP. For example,
 A call agent accepts SIP or H.323
call setup requests.
 The call agent uses MGCP to
control the media gateway.

routing information, and issues a command
to the gateways to establish RTP/RTCP
session with other end.
H.323
Gateway
H.323
Gateway
Analog
Phone
Analog
Phone
Gateway A Gateway B
Analog
Phone
Call Agent/
Media
Gateway
Controller
RTP/
RTCP
Analog
Phone
H.323
1. A user picks up analog phone and
dials a number.
2. The gateway determines how to
route the call.
3. The two gateways exchange
capabilities information.
4. The terminating gateway rings the

tự và các cơ chế khác liên quan đếnthời gian.
Bằng các cơ chế này RTP cung cấpsự truyền
tảidữ liệuthờigianthựcgiữacácthiếtbịđầu
cuối qua mạng.
21
41
CƠ CHẾ HOẠT ĐỘNG
 Các cơ chế hoạt động đượcthựchiện thông qua header
củaRTP. Hìnhsauchỉ ra cách mã hóa một gói tin trong
UDP/IP:
 RTP chạy phía trên UDP nên sử dụng các chứcnăng
ghép kênh và kiểmtracủa UDP. TCP và UDP là hai
phương thứcchủ yếunhất đượcsử dụng trên Internet.
TCP cung cấpcáckếtnốicóhướng và truyền dòng dữ
liệuvới độ tin cậy cao, trong khi UDP cung cấpdịch vụ
không kếtnốivàđộ tin cậythấp.
42
Nhưng UDP đượclựachọnlàgiaothức
truyềntảichoRTP vì:
 Đốivớicácdữ liệuthờigianthực, độ tin cậy không quan
trọng bằng truyền đúng theo thời gian. Hơnnữasự tin
cậy trong TCP là do cơ chế truyềnlại không thích hợp
cho RTP.
 Ví dụ, khi mạng tắc nghẽnmộtsố gói có thể bị mất, chất
lượng dịch vụ củacácứng dụng dù thấphơnnhưng vẫn
có thể chấpnhận được. Nếu các giao thức đảmbảo
được độ tin cậy thì các gói truyềnlạisẽ gây nên độ trễ
lớnvàtắc nghẽnmạng tăng.
22
43

RR, nó còn chứa thông tin về bên gửi
đồng thời cung cấpthôngtin đồng bộ giữa
các media, các bộđếmgóivàsố lượng
các byte đượctruyền.
24
47
SDES, BYE, APP
 SDES(Source Description): Các mụcmôtả về
bên phát
 BYE: Thông báo kết thúc một thành viên tham
dự
 APP(Application specific) : Các chứcnăng của
ứng dụng
48
RTCP cung cấpcácdịch vụ sau
đây:
 Giám sát chấtlượng và điềukhiểntắc
nghẽn
 Xác định nguồn
 Đồng bộ media
 Điềuchỉnh thông tin điềukhiển
25
49
Giám sát chấtlượng và điều
khiểntắcnghẽn
 Đây là chứcnăng cơ bảncủaRTP.
 RTCP cung cấp các phảnhồivề chấtlượng
phân phốidữ liệu, thông tin điềukhiển này rất
có ích cho bên phát, bên thu, giám sát.
 Bên phát có thểđiềuchỉnh cách thức truyềndữ


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status