TCP vs UDP - problems that occur when using both

When I learn about various technologies, I often try to think about how the applications that I use regularly implement such things. I played several MMOs along with some FPS. I looked around a bit and saw this topic:

http://www.gamedev.net/topic/319003-mmorpg-and-the-ol-udp-vs-tcp

I have seen UDP shine when some packet loss is acceptable. There is less overhead and updates are faster. Having a little glance and having read various articles and topics, I came to the conclusion that character positioning will often be performed using UDP. Games like FPS will often be run using UDP because of all the quick changes that occur.

I have seen many times when someone has pointed out problems that may occur while using UDP and TCP. What could be some of these issues? Are these problems primarily novice programmers? It seems to me that it would be ideal to use a combination of UDP and TCP, taking advantage of each of them. However, if using the two together adds significant complexity to the code to solve the problems, it may not be worth it in certain situations.

+5
source share
4 answers

UDP TCP . , . , . RTS, , TCP , . RPG .

, , ( , .), TCP UDP. , , , usecase , . UDP, / , . UDP , . , . . UDP, , . TCP.

. , . TCP , , , . UDP. . UDP - , TCP, , ( , , aso.), . TCP UDP UDP-Lite , , . AFAIK Battle.net .

+5

, , , , UDP , " ", TCP, UDP . , UDP, ​​ , TCP , TCP .

, TCP UDP; , TCP, UDP X. X, , ; , , , , . .

+1

, , TCP . , (, item: P) , . (udp ).

, , UDP- .

VoIP , UDP.

+1

udp tcp , udp tcp. , udp , tcp, tcp. udp tcp, tcp, . - , .

+1

All Articles