UDP for VideoStreaming

Translation of the original in Catalan. Read it in: CatalàCastellano

Which is the best protocol for doing video streaming over the internet, TCP or UDP?

First of all, congratulations to all those people I haven't congratulated for the new year. And to tell you that Friday was my birthday :) (that's 23 already).

The other day I took a partial exam in Video Systems (more aimed at video compression systems like MPEG2 and MPEG4) among others. And one of the questions they asked me was this one I've put in the header.

Well, I answered that the best system was UDP because in case some packet got lost, TCP sent an "error message" to the sender and it sent the whole sequence or packet again (it wasn't very clear to me what it was that got sent again) and on the other hand UDP only sent back the little piece that had been lost.

Anyway I also specified that for the internet, UDP is not used, but only UDP is used (at the home user level). So my doubt is whether I rushed too much saying that UDP is not used for the internet (since the question also specified internet) so for the internet it was TCP and UDP for networks that went over UDP.

9 comments

Comments from the old blog, as they were written. Comments are closed.

  1. Oriol Rius

    Nano, sempre q parlem d'streaming estem parlant de ràfegues de paquets
    i això sempre es fa per UDP, ja que el protocol és molt menys
    pesat que el TCP.Però molt més. El fet q no implmenti control
    d'errors ni de fluxe ni de res a nivell 4 no és un problema. Ja q el
    fet d perdre algún paquet no és greu. Es valora més la
    velocitat i el poc pes d la informació q no la fiabilitat.



    Per tant, no té cap sentit i és una pèrdua de temps fer
    streaming amb TCP. Ja q es perdria el concepte d'streaming en la propia
    definició del protocol TCP. Una cosa preten servir ràfegues
    d'informació i l'altre preten establir connexions fiables, per tant,
    es contradiuen les definicions.

  2. jav|v|

    Felicitats Law!!

    A vore quan fem un remember de Florida ;)



    Cuidat company



    jav|v|

  3. Law

    se el q em dius i ja ho savia, tot i q no tant profundament, pero la base de
    que per al TCP no es podia fer streaming era aquesta ho savia, pero la
    pregunta, anava sobre si el streaming per a INTERNET va millor el tcp o el udp,
    llavors clar, la pregunta, dita de una altra manera es; "Internet va
    també per UDP o exclusivament per TCP?"

  4. Nat

    Law! q pachaaaa quan de temps sense saber de tu! quines preguntes que fots! de
    veritat! com vols ficar streaming sobre TCP!!!!

    Apa solutacions i espero q hagis aprovat l'exament



    Nat

  5. Law

    ke tal nat! quant de temps! :). Viam si ja se q faig unes preguntes de bombero,
    pero segueixo preguntant... internet nomes va per TCP o tb VA ACTUALMENT per
    UDP?

  6. Oriol Rius

    NO TÉ CAP SENTIT FER VideoStreaming PER TCP!!!! s'ha de ser
    gilipolles!!!! ara està clar? una altre cosa és q es puguin usar
    enllaços tcp per intercanviar cert tipus d'informació en un
    streaming, però mai s'enviarà l'streaming per TCP, sempre es
    farà per UDP!



    Com ja vaig dir TCP contradiu la idea d'streaming, espero q ara s'entengui ;)

  7. Law

    la pregunta que s'ha de contestar amb SI o NO es:¿Internet va
    solament per TCP o tb va per UDP?
    i ja esta nomes contesteu-me aixo

  8. Oriol Rius

    nano pel teu bé espero q ningú llegeixi el teu comentari, pq la
    pregunta et costarà la reputació. Sigui o no sigui el teu
    món el d les xarxes l'hauries de saber. Però bueno si tan peix
    vas: Obviament amb TCP i UDP!!! capa 4 per sobre d'IP... ai senyor ;)

  9. Law

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaah (llegir-ho amb
    entonació Macario)