Communication in poor network environment is always a difficult problem, since troubles such as bit errors and packet loss may often occur. It is generally believed that it is impossible to transmit data both accurately and efficiently in this case. However, this paper provides a method to transmit data efficiently on the line where bit error may occur by utilizing Hamming code principle. If the sender adds a small amount of redundant data to the data to be sent, the receiver can self-correct them when an error is detected. This approach takes advantage of the value of packets with errors, which should have been discarded, reduce the number of re-transmissions and improve transmission efficiency. Based on this method, this paper designs a custom protocol which works in the data link layer and network layer. Finally, this paper verifies the protocol through mathematical simulation.
翻译:在恶劣的网络环境中,通信总是一个困难的问题,因为小错误和包丢失等麻烦经常发生,一般认为在这种情况下不可能准确和有效地传输数据,然而,本文件提供了一种方法,在使用哈明码原则可能发生小错误的线上有效传输数据。如果发送者在发送的数据中添加少量多余数据,接收者在发现错误时可以自我纠正这些数据。这一方法利用了错误包的价值,而错误包本应被丢弃,减少了再传输的数量,并提高了传输效率。根据这种方法,本文设计了一个在数据链接层和网络层起作用的定制协议。最后,本文通过数学模拟对协议进行验证。