Network connection TCP or UDP

Aus RailRoad&Co.-Wiki
Zur Navigation springenZur Suche springen
Diese Seite ist eine übersetzte Version der Seite Netzwerkverbindung TCP oder UDP und die Übersetzung ist zu 100 % abgeschlossen sowie aktuell.
Verwendung
thumbs


Network connection from TrainController to the digital center with TCP or UDP

Strange Effects

I notice strange behavior with the µCon S88 Master.

When trains travel by autotrain or fully automatically, feedback sensors suddenly get stuck somewhere.

  • The discussion about this problem can be found in the forum.

What is UDP

  • UDP = User Datagram Protocol: a minimal, connectionless, unsecured protocol in the network

UDP is well explained in the Wikipedia.

What is TCP

  • TCP = Transmission Control Protocol: a transmission control protocol. Data loss is detected and automatically corrected in TCP.

TCP is well explained in the Wikipedia.

Message losses in UDP

With UDP, security was sacrificed in favor of speed when transmitting large amounts of data (e.g. videos or telephony).

While the transmission with TCP is secured in the protocol so that every message sent reaches the recipient, with UDP messages can get lost. While it would be annoying if the picture jerked during video transmission via TCP, "lost pixels" for a fraction of a second during transmission via UDP are not perceptible to the human eye.

Conclusion: With UDP, protocol-related ('built-in' into the protocol concept) message losses can occur.

Problem for the model railway

If UDP-related message losses occur during the transmission of a response (e.g. occupancy message), then this response does not reach the PC. Unlike a few lost pixels in video transmission, lost responses are unacceptable in a model railway control system.

FAQ on UDP-based feedback systems

Because there have already been several inquiries and problem reports regarding UDP-based feedback systems (such as µCON-S88 masters or systems with a compatible interface protocol), Mr. Freiwald has compiled the most important questions in this context in a FAQ.

Weblinks


-- Uslex (Diskussion) 11:47, 13. Dez. 2021‎ (CEST)
bearbeitet: Uslex (Diskussion) 14:03, 7. Jul. 2022 (CEST), Uslex (Diskussion) 15:34, 17. Jul. 2023 (UTC)