rtcp & sdp
DESCRIPTION
RTCP & SDP. ๊น ์ ์ค [email protected]. RTCP. introduction. RTCP (RTP Control Protocol) ์ ์ด ํ๋กํ ์ฝ ๋ฐ์ดํฐ์ ์ ๋ฌ ์ํฉ์ ๊ฐ์ ์ต์ํ์ ์ ์ด ๊ธฐ๋ฅ ๋งค์ฒด ์๋ณ ๊ธฐ๋ฅ. RTCP performs four functions. ๋ฐ์ดํฐ ๋ถ๋ฐฐ์ ํ์ง์ ๋ํ ํผ๋๋ฐฑ์ ์ ๊ณต RTCP Sender Report(SR), Receiver Report(RR) RTP ์์ค์ ์๋ณ์ ์ํด ์ง์์ ์ธ ์๋ณ์๋ฅผ ์์ก CNAME - PowerPoint PPT PresentationTRANSCRIPT
RTCP & SDP
๊น ์ ์ค[email protected]
RTCP
3
introduction
RTCP (RTP Control Protocol) ์ ์ด ํ๋กํ ์ฝ ๋ฐ์ดํฐ์ ์ ๋ฌ ์ํฉ์ ๊ฐ์ ์ต์ํ์ ์ ์ด ๊ธฐ๋ฅ ๋งค์ฒด ์๋ณ ๊ธฐ๋ฅ
4
RTCP performs four functions
๋ฐ์ดํฐ ๋ถ๋ฐฐ์ ํ์ง์ ๋ํ ํผ๋๋ฐฑ์ ์ ๊ณต RTCP Sender Report(SR), Receiver Report(RR)
RTP ์์ค์ ์๋ณ์ ์ํด ์ง์์ ์ธ ์๋ณ์๋ฅผ ์์ก CNAME SSRC ๋ ์ถฉ๋์ด ๋ฐ์ , ํ๋ก๊ทธ๋จ์ด ๋ค์ ์์ํ ๊ฒฝ์ฐ ๋ณ๊ฒฝ
๊ฐ๋ฅ ์์ ์๋ ๊ฐ ์ฐธ๊ฐ์๋ค์ ์ผ๊ด์ฑ ์๊ฒ ์ ์งํ๊ธฐ ์ํด CNAME
ํ์ ์ฐธ๊ฐ์ ์๋ฅผ ์ด์ฉํด์ ์ ์ด ํจํท ์ ์ก ๊ฐ๊ฒฉ์ ์กฐ์
์ฐธ๊ฐ์๊ฐ ๋ค๋ฅธ ๋ชจ๋ ์ฐธ๊ฐ์์๊ฒ ์ ์ด ํจํท์ ์ ์กํ๋ฏ๋ก ๊ฐ๊ฐ์ ์ฐธ๊ฐ์๋ ์ ์ฒด ์ฐธ๊ฐ์์ ์๋ฅผ ํ์ ๊ฐ๋ฅ
์ต์ํ์ ์ธ์ ์ ์ด ์ ๋ณด๋ฅผ ์์ก ์๋ก์ด ์ฐธ๊ฐ์์ ์ ๋ถ ์ด๋ฆ ๋ฑ ์ฐธ๊ฐ์์ ๊ฐ๋จํ ์ ๋ณด ์์ก
5
RTCP packet format
SR(Sender report) RR(Receiver report) SDES(Source description items) โ CNAME ํฌํจ BYE โ ์ฐธ๊ฐ์์ ๋์ ๊ฐ๋ฆฌํด APP โ Application ์ ์
๋ค์์ RTCP ํจํท๋ค๋ก ๋ณตํฉ ํจํท์ ๋ง๋ค์ด์ ํ๋์ ํ์ ํ๋กํ ์ฝ ํจํท์ผ๋ก ์ ์ก
6
RTCP packet format
RTCP ํ๋กํ ์ฝ์ ์ ์ฝ ๋ณตํฉ RTCP ํจํท์๋ ๋ณด๊ณ (SR, RR) ๊ฐ ๋ฐ๋์ ํฌํจ ๋ณตํฉ RTCP ํจํท์ SDES CNAME ๋ ํฌํจ ๋ชจ๋ RTCP ํจํท๋ค์ ์ ์ด๋ ๋๊ฐ์ ๊ฐ๋ณ ํจํท์ผ๋ก ๊ตฌ์ฑ๋ ๋ณตํฉ ํจํท
ํํ๋ก ์ ์ก๋์ด์ผ ํจ
7
RTCP Transmission Interval
RTP ๋ ์์ฒ์ ์ฐธ๊ฐ์๋ฅผ ํ๋์ ์ธ์ ์ ์ฐธ๊ฐ ๊ฐ๋ฅ ์ด ๋ RTCP ๋ ์ฐธ๊ฐ์์ ์์ ๋น๋กํ์ฌ ๋นํธ์จ ์ฆ๊ฐ RTCP ์ ํ ๋น๋๋ ๋์ญํญ์ ์ธ์ ๋์ญํญ์ 5% ๊ณ ์
์ด ๋ , sender ๋ ยผ ์ ๋์ญํญ ํ ๋น
์ธ์ ๋ฉค๋ฒ ์ ๊ด๋ฆฌ SSRC ํจํท์ ์์ ํ๊ธฐ ์ ๊น์ง ์ฐธ๊ฐ์๋ ์ ํจ X ๊ฐ ์ฐธ๊ฐ์๋ 5 ๊ฐ์ RTCP ๋ณด๊ณ ๊ฐ๊ฒฉ ๋์ ๋ณด๊ณ ๋ฅผ ํ์ง
์์ผ๋ฉด ๊ทธ ์ฌ์ดํธ๋ฅผ ๋นํ์ฑํ ๋๋ ์ญ์ ๋นํ์ฑํ ์ํ์ฌ๋ 30 ๋ถ๊น์ง ๊ทธ ์ฌ์ดํธ ์ ์ง
SDES ๋์ญํญ ํ ๋น SDES ์ ๋ถ๊ฐ์ ๋ณด ๋๋ฌธ์ ์ ์ฒด ํ๋กํ ์ฝ์ ์ฑ๋ฅ ์ ํ ์ ๋ฐ 20% ๋ฏธ๋ง์ผ๋ก SDES ํจํท ์ ์ก
8
Sender and Receiver Reports
RTP ์์ ์๋ SR, RR ์ ๋ณด๋ด์ ํผ๋๋ฐฑ ์ ๊ณต RTCP ์ ์ก ๊ฐ๊ฒฉ ๋์
๋ฐ์ดํฐ๋ฅผ ์ ์กํ ๊ฒฝ์ฐ SR ์๋ ๊ฒฝ์ฐ RR ์ ์ก
SR, RR ์ ์ต๋ 31 ๊ฐ์ ์์ ๋ณด๊ณ ๋ธ๋ก ํฌํจ ๊ฐ๋ฅ
9
SR: Sender Report RTCP Packet
10
์ธ ๊ฐ์ ์น์ ์ผ๋ก ๊ตฌ์ฑ ํ๋กํ์ผ์ ๋ฐ๋ฅธ ๋ค ๋ฒ์งธ ํ์ฅ ์น์ ์ถ๊ฐ ๊ฐ๋ฅ
Header, Sender Info, Report Block, Profile-Specific extensions Header
Report Count (RC): ์์ ๋ณด๊ณ ๋ธ๋ก์ ์ Packet Type (PT): 200 ์ ๊ฐ Length: 32 ๋นํธ ์๋์ ์ ์ฒด ํจํท์์ 1 ์ ๋บ ๊ฐ
Sender Info NTP Timestamp: 64 ๋นํธ , round-trip ์ง์ฐ ๊ณ์ฐ์ ์ด์ฉ RTP Timestamp: RTP ์ ๋์ผํ ์๊ฐ ๊ณ์ Senderโs packet count
์ ์ก ์์๋ถํฐ SR ํจํท์ด ์์ฑ๋ ๋๊น์ง์ RTP ๋ฐ์ดํฐ ํจํท ์ด ์
Senderโs octet count ์ ์ก ์์๋ถํฐ SR ํจํท์ด ์์ฑ๋ ๋๊น์ง์ RTP payload ์ ๋ฐ์ดํธ
์
11
Report block SSRC_n
ํด๋น๋๋ SSRC ์ ์๋ณ์ Fraction lost
์ด์ report ์ก์ ์ดํ ๋ถ์ค๋ RTP ๋ฐ์ดํฐ ํจํท ๋น์จ Cumulative number of packets lost
๋ถ์ค๋ ์ด RTP ๋ฐ์ดํฐ ํจํท ์ Extended highest sequence number received
์์ ํ RTP ๋ฐ์ดํฐ ํจํท์ ์ต๊ณ ์๋ฒ seq. number Interarrival jitter
ํจํท ๋์ฐฉ ์๊ฐ ๊ฐ์ ํต๊ณ์ ๊ฐ๋ณ์ฑ์ ์ธก์ ๊ฐ Last SR Timestamp (LSR)
์ต๊ทผ์ ๋ฐ์ RTCP SR ์ time stamp ๊ฐ ( ์ค๊ฐ 32 ๋นํธ ) Delay since last SR (DLSR)
์ต์ข SR ํจํท ์์ ๊ณผ ์ด ์์ ๋ณด๊ณ ๋ธ๋ก ์ก์ ๊ฐ์ ์ง์ฐ ์๊ฐ
12
์๋ณต ์ ์ก ์ง์ฐ ์๊ฐ ๊ณ์ฐ A: RR ์ด ์์ ๋ ์๊ฐ LSR: ์์ ํ ์๊ฐ DLSR: ์์ ๊ณผ ์ก์ ๊ณผ์ ์ง์ฐ์๊ฐ
13
RR: Receiver Report RTCP Packet
SR ๊ณผ ๊ฑฐ์ ๋์ผ PT = 201 NTP/RTP Timestamp, Senderโs packet/octet count ์๋ต
14
Sender and Receiver Reports ํ์ฅ ๋ฐ ๋ถ์
Extending the Sender and Receiver Reports Profile-specific extensions ์ฌ์ฉ ์ก์ ์ ๋๋ ์์ ์์ ๋ํด์ ์ฃผ๊ธฐ์ ์ผ๋ก ๋ณด๊ณ ๋์ด์ผ ํ ์ถ๊ฐ
์ ๋ณด๊ฐ ์์ ๊ฒฝ์ฐ ํ์ฅ์ ์ ์ ์๋ก์ด RTCP packet ์ ์ถ๊ฐํ๋ ๊ฒ์ overhead
No RTCP header or SSRC field ์ฌ์ฉ ๊ฐ๋จํ๊ณ ๋น ๋ฅธ parsing ๊ฐ๋ฅ
Analyzing Sender and Receiver Reports ์์ ํ์ง ํผ๋๋ฐฑ์ ์ก์ ์ , ์์ ์ , ๋ชจ๋ํฐ๋ค์๊ฒ ์ ์ฉ
์ก์ ์๋ ํผ๋๋ฐฑ์ ๋ฐ๋ผ์ ์ ์ก์จ ๋ณ๊ฒฝ ๊ฐ๋ฅ ์์ ์๋ ์ด๋ค ๋ฌธ์ ๋ฐ์ ์ , ์ ์ญ์ ์ธ์ง ์ง์ญ์ ์ธ์ง ํ๋จ ๊ฐ๋ฅ ๋ง ๊ด๋ฆฌ์๋ ๋ง์ ์ฑ๋ฅ์ ํ๊ฐํ๊ธฐ ์ํด์ ๋ชจ๋ํฐ ์ด์ฉ
15
SDES: Source Description RTCP Packet
Header ์ chunk ๋ก ๊ตฌ์ฑ Chunk ๋ ์๋ณ๋ ์์ค๋ฅผ ์ค๋ช ํ๋ item ๋ค๋ก ๊ตฌ์ฑ
Packet Type: 202 Source Count (SC): SSRC/SCRC chunk ์ ์
16
CNAME (Canonical End-point Identifier, 1) โuser@hostโ, โhostโ ๋ค์์ ์์ค๋ฅผ ์์ฑํ ๊ฒฝ์ฐ ์์ค์ ๋ํด ์ ์ผํ ์๋ณ์๊ฐ ์ ๊ณต
X NAME item ์ ๋ณ๋๋ก ์ ๋ฌํ ํ์ X
NAME (User name, 2) ์์ค๋ฅผ ์ค๋ช ํ๋ ์ค๋ช , ์ด๋ ํ ํํ๋ก๋ ๊ธฐ๋ก ๊ฐ๋ฅ ์ธ์ ๊ธฐ๊ฐ ๋์ ๋ณํจ X, ์ธ์ ๋ด์์ ์ ์ผํ ํ์ X ์ฐ์ ์์๋ฅผ ์ ํ์ฌ ์ ์ก๋๋ ํ์๋ฅผ ๊ฒฐ์ ํ๋๋ฐ ๋์์ ์ค
17
EMAIL (Electronic mail address, 3) ์ ์๋ฉ์ผ์ฃผ์ , ์ธ์ ๊ธฐ๊ฐ ๋์ ๋ณํจ X
PHONE (Phone number, 4) ๊ตญ์ ์ ์ ์ฝ๋๋ฅผ + ๊ธฐํธ๋ก ๋ณ๊ฒฝํ ํํ , +1 908 555 1212
LOC (Geographic user location, 5) ์ค์ ์ฃผ์
TOOL (Application or tool name, 6) ์ค์๊ฐ ์คํธ๋ฆผ์ ์์ฑํ๋ ์์ฉ์ ์ด๋ฆ๊ณผ ๋ฒ์ ๋๋ฒ๊น ๋ชฉ์ ์ ์ ์ฉ
NOTE (Notice/status, 7) ์์ค์ ํ ์ํ๋ฅผ ์ค๋ช ํ๋ ์์์ ์ธ ๋ฉ์์ง ์ ๋ฌ ๋ชฉ์
PRIV (Private extensions, 8) ์คํ์ , ๋๋ ์์ฉ์ ๋ฐ๋ฅธ SDES ํ์ฅ์ ์ ์ํ๋๋ฐ ์ด์ฉ
18
BYE: Goodbye RTCP Packet
์์ค๊ฐ ๋ ์ด์ ํ์ฑํ ์ํ๊ฐ ์๋์ ๋ํ๋ Packet Type: 203 Source Count (SC): SSRC/CSRC ์๋ณ์ ์๋ฅผ ๋ํ๋
19
APP: Application-Defined RTCP Packet
์๋ก์ด ์์ฉ , ๊ธฐ๋ฅ ๋ฑ ๊ฐ๋ฐ๋์์ ๋ ์คํ์ ๋ชฉ์ ์ผ๋ก ์ฌ์ฉ Subtype : ์ผ๋ จ์ APP ํจํท๋ค์ ์ ์ผํ ์ด๋ฆ์ผ๋ก ์ ์ Packet Type : 204 Name: APP ํจํท์ ์ ์ํ๋ ์ด๋ฆ Application-dependent data
๊ฐ๋ณ๊ธธ์ด ํ๋ Application ์ ์ํด ํด์๋๋ ํ๋ 32 ๋นํธ์ ๋ฐฐ์๋ก ์ ์
SDP
21
Introduction
SDP ๋ ์ธ์ ์ ๋ํ ์ ๋ณด๋ฅผ ํํํ๋ ํ์ค์ ์ ๊ณต
SDP usage Session Initiation - SIP Streaming media - RTSP Email and the World Wide Web โ MIME content type โapplication/sdpโ Multicast Session Announcement - SAP
22
SDP session description
SDP session description includes Session name and purpose Time the session is active The media comprising the session Information needed to receive those media
Address, port, format
Additional information Information about the bandwidth to be used by the session Contact information for the person responsible for the session
23
Media and Transport Information The type of media (video, audio, etc.) The transport protocol (RTP/UDP/IP, H.320, etc.) The format of media (H.261 video, MPEG video, etc.) The multicast group address for media (multicast) The transport port for media The remote address for media (unicast) The remote transport port for media
Timing Information Session start / stop time Repeat time
Private Session Encrypting the session description
24
SDP Specification
<type>=<value>
25
Protocol Version (v=0) Origin
o=<username> <sess-id> <sess-version> <nettype> <addrtype> <unicast-address>
Session Name (s=<session name>) Session Information (i=<session description>) URI (u=<uri>) Email Address and Phone Number
e=<email-address> ([email protected]) p=<phone-number> (+1 617 555-6011)
Connection Data c=<nettype> <addrtype> <connection-address> c=<nettype> <addrtype> <connection-address/TTL> c=IN IP4 224.2.36.42/127
26
Connection Data c=<nettype> <addrtype> <base multicast address> [/<ttl>]/
<number of address> c=IN4 IP4 224.2.1.1/127/3
Bandwidth (b=<bwtype>:<bandwidth>) Timing (t=<start-time><stop-time>)
๋ ๋ค 0, ์๊ตฌ์ ์ผ๋ก ์ ์ก Repeat Times
r=<repeat-interval><active duration><offsets from start-time>
Encryption Keys k=<method> k=<method>:<encryption key>
27
Attributes a=<attribute> a=<attribute>:<value> Session level attribute, Media level attribute
Media Descriptions m=<media><port><proto><fmt> m=<media><port>/<number of ports> <proto><fmt>
c=IN IP4 224.2.1.1/127/2 m=video 49170/2 RTP/AVP 31 224.2.1.1 port 49170 49171 224.2.1.2 port 49172 49173
28
Sample