adolfbasil › industrial iot gateway › Why can't it be restored correctly?

Why can't it be restored correctly?

2022年11月04日

When the sender assembles the message, it combines several small packets into one packet, so that the receiver cannot parse out the small packets. This corresponds to Nagle's algorithm. Because both TCP and Nagle's algorithm are products of the last century, doing so in early networks can significantly reduce network stress. Otherwise, sending small packets with only a few bytes frequently will seriously waste network IO performance.
However, in the modern Internet, the network performance has been greatly improved. It seems that the IO performance improved by the Nagle algorithm is not so important. On the contrary, due to the operation of waiting for the data to be merged, the transmission delay will become larger. In the application of online games , it will greatly affect the experience. So it is generally turned off now.
Bluetooth Module

After the receiving end receives the message, the application layer cannot always take the data immediately, and there is always a receive buffer. If the interval between two independent messages entering the buffer is too small, the application layer cannot take the previous message in the middle of the two messages, then the next time it is read, the two packets of messages are bound to be read at the same time, which will also lead to sticky packets.serial module


And this situation cannot be avoided by letting the sender send packets evenly in time, because of the existence of network instability, even packets sent evenly in time may appear randomly to the receiver.


同じカテゴリー(industrial iot gateway)の記事
 What is the difference between BLE and traditional Bluetooth (2023-05-08 18:28)
 LBT wireless communication technology functions (2023-04-28 12:16)
 Can TCP and UDP bind to the same port at the same time? (2023-04-17 15:43)
 What is the future development potential of antenna (2023-03-20 18:43)
 Oil exploration wells are scattered and numerous in number (2023-03-13 14:46)
 The challenges posed by the current Internet of Things (2023-03-13 14:26)

上の画像に書かれている文字を入力して下さい
 
<ご注意>
書き込まれた内容は公開され、ブログの持ち主だけが削除できます。