Netzwerkverbindung TCP oder UDP/en: Unterschied zwischen den Versionen

Aus RailRoad&Co.-Wiki
Zur Navigation springenZur Suche springen
Die Seite wurde neu angelegt: „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 [https://www.freiwald.com/forum/viewtopic.php?f=8&t=38074 FAQ].“
KKeine Bearbeitungszusammenfassung
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 19: Zeile 19:


* UDP = '''User Datagram Protocol''': a minimal, connectionless, unsecured protocol in the network
* UDP = '''User Datagram Protocol''': a minimal, connectionless, unsecured protocol in the network
UDP is well explained in the [https://de.wikipedia.org/wiki/User_Datagram_Protocol Wikipedia].
UDP is well explained in the [https://en.wikipedia.org/wiki/User_Datagram_Protocol Wikipedia].


<span id="Was_ist_TCP"></span>
<span id="Was_ist_TCP"></span>
Zeile 25: Zeile 25:


* TCP = '''Transmission Control Protocol''': a transmission control protocol. Data loss is detected and automatically corrected in TCP.
* TCP = '''Transmission Control Protocol''': a transmission control protocol. Data loss is detected and automatically corrected in TCP.
TCP is well explained in the [https://de.wikipedia.org/wiki/Transmission_Control_Protocol Wikipedia].
TCP is well explained in the [https://en.wikipedia.org/wiki/Transmission_Control_Protocol Wikipedia].


<span id="Nachrichtenverluste_bei_UDP"></span>
<span id="Nachrichtenverluste_bei_UDP"></span>
Zeile 46: Zeile 46:
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 [https://www.freiwald.com/forum/viewtopic.php?f=8&t=38074 FAQ].
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 [https://www.freiwald.com/forum/viewtopic.php?f=8&t=38074 FAQ].


<div lang="de" dir="ltr" class="mw-content-ltr">
== Weblinks ==
== Weblinks ==
</div>


<div lang="de" dir="ltr" class="mw-content-ltr">
*source: [https://www.freiwald.com/forum/viewtopic.php?f=8&t=35762&hilit=wlan forum]
*Quelle: [https://www.freiwald.com/forum/viewtopic.php?f=8&t=35762&hilit=wlan Forum]
*FAQ: [https://www.freiwald.com/forum/viewtopic.php?f=8&t=38074 UDP-based feedback systems]
*FAQ: [https://www.freiwald.com/forum/viewtopic.php?f=8&t=38074 UDP-basierte Rückmeldesysteme]
*UDP:  [https://en.wikipedia.org/wiki/User_Datagram_Protocol Wikipedia]
*UDP:  [https://de.wikipedia.org/wiki/User_Datagram_Protocol Wikipedia]
*TCP: [https://en.wikipedia.org/wiki/Transmission_Control_Protocol Wikipedia]
*TCP: [https://de.wikipedia.org/wiki/Transmission_Control_Protocol Wikipedia]
</div>





Aktuelle Version vom 8. Januar 2025, 20:48 Uhr

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)