[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

Why should I use TCP when I can just add segment numbers to UDP and resend my UDP


Thread replies: 9
Thread images: 1

File: 4127247_f260.jpg (13KB, 260x148px) Image search: [Google] [Yandex] [Bing]
4127247_f260.jpg
13KB, 260x148px
Why should I use TCP when I can just add segment numbers to UDP and resend my UDP packets a few times?
>>
That's the wrong question. Why would you add segment numbers and retransmit tracking to UDP if you could just use TCP?
>>
>>54657651

Because congestion management.

http://intronetworks.cs.luc.edu/current/html/reno.html

Read chapters 14 and 15 too.
>>
You fucking turbo losers are even contrarian on the fucking network protocol. Go back to the fucking irc circlejerk and stay there.
>>
>>54657705
this is the main reason
>>
>>54657651
>and resend my UDP packets a few times
Because then you've managed to generate significantly more traffic than with TCP while still having no guarantee that any of it arrived
>>
>>54657651
read up on Google's QUIC protocol. Provides reliability on top of UDP transport. If you use chrome or chomium as your browser, you're already using QUIC for youtube videos and other google content. (check wireshark)
>>
What you really wanna do with UDP is number your packets and then set up acknowledgements, resend and dallying. Take a look at this example:

https://github.com/psok/COMP474Checkers/tree/master/app/src/main/java/com/checkers/kingme/comp474checkers/network

But keep in mind that this is only viable for short messages, not for larger data transmissions. I mean, it works for, say, sending a file, but it won't attempt to saturate your link like any number of TCP implementations will - unless you implement that by hand, and trust me, you don't wanna do that, because that's fairly hard to get right (many TCP implementations still haven't, actually).
>>
>>54657812
a lot of video streaming is UDP
Thread replies: 9
Thread images: 1
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK