Question

In: Computer Science

What's the point of having a checksum in the UDP datagram header when the source host...

What's the point of having a checksum in the UDP datagram header when the source host doesnt care if some parts of the message do not arrive at the destination?

Solutions

Expert Solution

User Datagram Protocol (UDP) is a Transport Layer protocol. It is unreliable and connectionless protocol. So, there is no need to establish connection prior to data transfer.

UDP header is of 8-bytes in which Checksum is of 2bytes. The main purpose of UDP checksum is to detect errors in transmitted segment. This field is optional in IPv4, and mandatory in IPv6.

UDP uses the checksum in order to determine whether the received data is corrupted along the network or not. The sender will compute the checksum value based on the data and embed it in the frame. At the receiver side checksum is calculated again and matched with sender’s checksum if error is detected then packet is discarded by receiver and not delivered to the socket.

Thus by using checksum you have a reasonable amount of assurance that the data has not been corrupted. Without any checksum, there would be no guarantee that the bytes received are the same as the bytes sent.

Please Rate the answer and if you have any query please ask .


Related Solutions

Research on TCP, UDP, and IP. And Define TCP, UDP, and IP Compare the header of...
Research on TCP, UDP, and IP. And Define TCP, UDP, and IP Compare the header of TCP, UDP, and IP packets. Why are there more fields in PCP header than UDP and IP?
In IP, the checksum covers only the header and not the data. Why do you suppose...
In IP, the checksum covers only the header and not the data. Why do you suppose this design was chosen?
Q10. Compare the header of TCP, UDP, and IP packets and explain why are there more...
Q10. Compare the header of TCP, UDP, and IP packets and explain why are there more fields in TCP header than UDP and IP? (10 points)
The UDP header starts at (0022 base 16) Solve the following How many fields are there...
The UDP header starts at (0022 base 16) Solve the following How many fields are there in the UDP header? (see slides) What is the ending byte address of the UDP header What is the source port number? (in decimal notation) What is the destination port number? (in decimal notation) What is the checksum value?
A program at host A sends a UDP datagram carrying 4500 octets1 of data (or payload)...
A program at host A sends a UDP datagram carrying 4500 octets1 of data (or payload) to its counterpart at host C. In between A and C is router B. The MTU between A and B is 1500 octets while between that B and C 1320 octets. Show IP packets and fragments along the path. For each IP packet and fragment, show key header fields like Total Length, Identification, More Flag, and Fragmented Offset
For the TCP header of a data packet shown below, find the following parameters. (1) Source...
For the TCP header of a data packet shown below, find the following parameters. (1) Source port number (2) Destination port number (3) Sequence number (4) Acknowledgement number (5) Header length (6) Window size (7) a. Which flag is on? b. What is the type/purpose of this communication? 0 0 0 0   0 0 0 1   0 0 1 0   0 1 0 0   0 0 0 0   0 0 0 1   0 0 0 1   0 1 0 1...
What are the possible benefits from foreign investment, for both the source and host country?
What are the possible benefits from foreign investment, for both the source and host country?
We are sending a MP3 file of 1,000,000 bits from a source host to a destination...
We are sending a MP3 file of 1,000,000 bits from a source host to a destination host. All links in the path between source and destination have a bandwidth of 10 Mbps. Assume that the propagation speed is 2.5 * 10 8 meters/sec, and the distance between source and destination is 10,000 km. 1. Now suppose there are two links between source and destination, with one switch connecting the two links. Each link is 5,000 km long. Again suppose the...
"What's the problem?" “The president wanted to know the break-even point for each of the company’s...
"What's the problem?" “The president wanted to know the break-even point for each of the company’s products, but I am having trouble figuring them out.” “I’m sure you can handle it, Cheryl. And, by the way, I need your analysis on my desk tomorrow morning at 8:00 sharp in time for the follow-up meeting at 9:00.” Piedmont Fasteners Corporation makes three different clothing fasteners in its manufacturing facility in North Carolina. Data concerning these products appear below: Velcro Metal Nylon...
Discuss the ethical dilemmas around not having a suitable animal host to study N. gonnorhoeae. Do...
Discuss the ethical dilemmas around not having a suitable animal host to study N. gonnorhoeae. Do you agree with the scientists testing various theories about gonorrhea on themselves? How about using human subjects for gonorrhea research?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT