09.02.2013 Views

Sviluppo di una piattaforma per lo streaming multimediale - MobiLab ...

Sviluppo di una piattaforma per lo streaming multimediale - MobiLab ...

Sviluppo di una piattaforma per lo streaming multimediale - MobiLab ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1.3.1 – RTP e RTCP<br />

<strong>Sviluppo</strong> <strong>di</strong> <strong>una</strong> <strong>piattaforma</strong> <strong>per</strong> <strong>lo</strong> <strong>streaming</strong> multime<strong>di</strong>ale in ambiente Android<br />

Il protocol<strong>lo</strong> RTP/RTCP è <strong>lo</strong> standard <strong>per</strong> la comunicazione in tempo reale,<br />

definito nel RFC3550, pubblicato nel 2003.<br />

In realtà RTP e RTCP hanno compiti <strong>di</strong>versi. Il primo si occupa della consegna, il<br />

secondo <strong>di</strong> monitorare la qualità del servizio.<br />

RTP/RTCP viene comunemente integrato all'interno dell'applicazione me<strong>di</strong>ante<br />

l'utilizzo <strong>di</strong> librerie come JMF, FMJ oppure JRTPLIB, e quin<strong>di</strong> si col<strong>lo</strong>ca come<br />

implementazione a livel<strong>lo</strong> applicativo, e anche se idealmente apparterrebbe a quel<strong>lo</strong><br />

<strong>di</strong> trasporto, in realtà demanda tutte le sue funzionalità <strong>di</strong> trasmissione all'UDP.<br />

UDP naturalmente presenta, <strong>per</strong> garantire la ve<strong>lo</strong>cità, forti carenze <strong>di</strong> servizi e<br />

controlli, a cui dovrà sop<strong>per</strong>ire RTP.<br />

Sinteticamente possiamo cata<strong>lo</strong>gare questi servizi aggiuntivi come:<br />

– Informazioni sul pay<strong>lo</strong>ad, come il tipo e il formato dei dati inviati.<br />

– Un sequence number, <strong>per</strong> ricostruire l'or<strong>di</strong>ne dei pacchetti.<br />

– Un sistema <strong>di</strong> identificazione sorgenti <strong>per</strong> sincronizzare flussi <strong>di</strong>versi.<br />

– Il timestamping, ovvero la cognizione della posizione temporale dei dati.<br />

RTP è un protocol<strong>lo</strong> <strong>di</strong> trasporto e non fornisce nessun meccanismo <strong>per</strong> garantire la<br />

consegna del pacchetto, il QoS o la sincronizzazione, che sono invece demandati agli<br />

strati sottostanti.<br />

Figura 1 - Protocol<strong>lo</strong> RTP<br />

19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!