English 中文(简体)
计算接收器中的校验和
原标题:Calculating the Checksum in the receiver

我正在读这本书http://www.docstoc.com/docs/57226587/Data-Communications-and-Networking-4th---Behrouz-Forouzan“rel=”nofollow“>数据通信和网络第4版Behrouz Forouzan。我在一个练习中有一个问题,问了我以下问题:消息的接收者对8位字符使用校验和技术(校验和),并获得以下信息

100101000011010100101000

.我如何知道发送的数据是否正确?为什么?

我学会了如何计算十六进制值的校验和,但不理解由二进制输出确定的信息是否正确。

最佳回答

发送方计算数据的校验和并将其和数据一起发送到同一消息中。

接收器再次计算接收到的数据的校验和,并检查结果是否与接收到的校验和匹配。

数据和校验和在传输过程中仍有可能被修改,因此它们仍然匹配,但由于随机噪声,发生这种情况的可能性极低。

问题回答

暂无回答




相关问题
C# Networking API s [closed]

Lately I ve been looking for a good networking API i could possibly use and/or reference some of the code within, but i have mere luck searching for some on Google/Bing. Hopefully somebody here has ...

Listen to a port that is in use [duplicate]

Possible Duplicate: Get connecting IP from specified ports that using by other program. If a port is used by a program, is there any way I can listen that port and get the connected IP on that ...

Twisted Spread suitable for multiplayer racing sim?

Do you think that Twisted Spread may be suitable (in terms of performance) for a multiplayer racing simulator? The rest of the application is based on Python-Ogre. Can Perspective Broker run upon (...

Optimizing a LAN server for a game

I m the network programmer on a school game project. We want to have up to 16 players at once on a LAN. I am using the Server-Client model and am creating a new thread per client that joins. ...

multicast ip address - blocked in call to recvfrom

i am writing a simple multicast application. i intend to run it on localhost. i have done the following: char *maddr; . . . sendfd = socket(...); struct sockaddr_in sasend; sasend.sin_family = ...

Java HTTPAUTH

我试图把桌面应用程序连接起来,我是同D.icio.us api @ Delicious Alan书写的,简单地向他们提供我的用户名和密码,并请他把书记上写给我......。

热门标签