51Testing软件测试网6|}0f)`+e9A)_]
51Testing软件测试网[#r!b`#rfp9g
51Testing软件测试网S`f1r%a
Jby|N%D*{
Session
Description Protocol
c"M-X"@"j!}q0
l0bd5D~i0Purpose and Content
~(Z
q/{{jg0
o%S}a-Q4Q0l The
purpose of SDP is to convey information about media streams in multimedia
sessions to help participants join or gather info of a particular session
3t(D'V8M*\Al4c#M*A0l SDP includes51Testing软件测试网
z1a1r-`5u4a
-Session name and purpose51Testing软件测试网e&qBP'p]L
-Time(s) the session is active
S#G$\0B(t\1wL#J0-The media comprising the session
(o$G'O RY+~,T)UV0-Information to receive those media (addresses, ports,
formats and so on)
7Vuz? d.~"e*B0
%cJo#u
?y8s&{-\:t0
!v5mR%N*`z4I8{0I$UV0Format51Testing软件测试网Z-KZ-n,b
51Testing软件测试网CFY*T_
l SDP is a
short structured textual description51Testing软件测试网.]-q4[AB
l It
conveys the name and purpose of the session, the media, protocols,codecformats,
timing and transport information
R:m;C,N+dF y0l A
tentative participant checks these information and decides whether to join a
session and how and when to join a session if it decides to do so51Testing软件测试网%{4{4E(P7k#Ps:c e
l The format has entries in
the form. of<type>=<value>, where the<type>defines
a unique session parameter, and the<value>provides a specific
value for that parameter.51Testing软件测试网*Z
gE^6ZKT
51Testing软件测试网+E*^ZU1O F._,l'U
N8E)N-ke PG~8E0Session Description Parameters -1
'v)YNt5Dr'w0 51Testing软件测试网T&}/sf6E8o
Session
description(* denotes optional )
$OH,D4A9nO l1vQH1H0v=
(protocol version)51Testing软件测试网Qi!]dMh
o=
(owner/creator and session identifier)
8e+C?oX-`x-~:LY0s=
(session name)51Testing软件测试网,DK*eh6[
i=*
(session information)
-d4S|6x'm}
?^}5uf0u=*
(URI of description)51Testing软件测试网CK-Mb@k
e=*
(email address)51Testing软件测试网EpS;\C%ST
p=*
(phone number)51Testing软件测试网5Y"R`!wS
C$@og
c=*
(connection information -not required if included in all media)51Testing软件测试网l;R'W
L%Y!H1VN`
b=*
(bandwidth information)
%ka'r'yNGL0One
or more time descriptions (see next slide)
1I+uh#e U&[5vO)x.t0z=*
(time zone adjustments)51Testing软件测试网U4pxGd
k=*
(encryption key)51Testing软件测试网,?
Rh?w{m
a=*
(zero or more session attribute lines)51Testing软件测试网.g*V5~%HH
Zero
or more media descriptions (see next slide)
:Ej1PX},t YX9^0
T%j#|/{%G3`;Cdz*p0
)ok0zLX$nB%|*O0
b#z"q9Y2z0Session Description Parameters -251Testing软件测试网"`5[ {Ke~y
51Testing软件测试网!HA2j^ GK
l Time
description(* denotes optional )51Testing软件测试网i1d
m/V6O/|A
a
t=
(time the session is active)51Testing软件测试网0Rc5GAM-aj"X&Y0R#G
r=*
(zero or more repeat times)51Testing软件测试网{FMWJ:kt
l Media
description(* denotes optional )
`I'O4Iqa_7H
i0h0m=
(media name and transport address)
x U@%a/U3d0i=*
(media title)51Testing软件测试网)P}?7X8^V
c=*
(connection information -optional if included at session-level)
y+`-}L7Q&A\J0b=*
(bandwidth information)
;_sk&`hO.l0k=*
(encryption key)
E`eG$i+K9x*[w#@$g0a=*
(zero or more media attribute lines)
cYGPX#?{n m @Q0
7P%Gx)c^^F4@0x0 51Testing软件测试网qq3VAe+?!`R W
51Testing软件测试网#c0Ue,b*~7G-Xo}.@q
An Example
jE![0@}2g3u0
7R%^qn1b6N6h!EF0Below
is an example session description, taken from RFC 2327:51Testing软件测试网8p?7r4[TV+X
v=051Testing软件测试网4p@X XC&n7A8MN
o=mhandley2890844526
2890842807 IN IP4 126.16.64.4
(R$QC(?-i)~f0s=SDP
Seminar51Testing软件测试网)zT"@u9T_^
i=A
Seminar on the session description protocol51Testing软件测试网(?$j0_0J&{;qR
u=http://www.cs.ucl.ac.uk/staff/M.Handley/sdp.03.ps
yt6SHMd p+MJ0e=mjh@isi.edu(Mark
Handley)51Testing软件测试网+OHKw N&i/m*E
c=IN
IP4 224.2.17.12/127
&I4iN
e oh0t=2873397496
287340469651Testing软件测试网!z
BjS1SIN
m
a=recvonly51Testing软件测试网*WX@/J6C2S([#M!NrbDu,U
m=audio
49170 RTP/AVP 051Testing软件测试网4_*l-a0C._%Q2l!y
m=video
51372 RTP/AVP 31
0r~^Ll2o0m=application
32416udp wb51Testing软件测试网5I/}-}N0SzG5\
a=orient:portrait
A:N+W`4a8?0 51Testing软件测试网[B9rBb
51Testing软件测试网W/D'vd`
g'Wa$]]7u
This
presentation is only a rough introduction. For better understanding go through
the document of RFC 2327
)k"Ggk#~M
mD:[Z1CQO0
yu(?S7d%j;|/w0 51Testing软件测试网C;k1SiP'b#h4k