I am developing my own transport protocol for a video conferencing application. I would like to know if a connection-based or connectionless approach is suitable for this application.
I developed games, including those classified as “jerky” games, such as racing and FPS titles. Latency is crucial for this type of game. You cannot use TCP because it guarantees delivery on order and will store incoming packets during resend processing.
For most of them, we used what we called Stateful UDP. All that really means is that we have added the package identifier to the message. When we received the message, we checked the identifier. If the identifier was higher than the highest identifier that we have seen so far, we have accepted and processed this package. If he was lower, we would throw him. This approach works well when latency is important, since even with UDP you will receive most of your packets, and most of them will be fine.
TCP, , ( - MPEG-), - , , . , TCP, .
UDP, , . MPEG-, , - , UDP, -, , , , . , , , .
, , , -, , , TCP, , , , , . , - ( , , , ), UDP , -, , .
, , (, TCP-, , ).
TCP . . , , TCP . / . , , , .
UDP , , .
Streaming video and audio is not so simple. You should look at what already exists - RTP to find out what you are trying to invent, -)
Source: https://habr.com/ru/post/1733046/More articles:Continuity of sleep mode - javaGet a list of change lists attached to a job - perforceWhere can I find the jQuery syntax highlighting plugin for Notepad ++? - jqueryInvalid chapter number on page titles except first page - latexStored Procedure in Ruby on Rails - ruby-on-railsPart Ruby consumes part by part - arraysИзбавьтесь от потраченного впустую/неиспользуемого пространства в JMenu - javaCrop a string in C (without using library functions) - cSetting fill factor to reduce fragmentation - sql-serverprevent recoding captcha - captchaAll Articles