2,200 views
2 2 votes
In TCP checksum is mandatory but in UDP checksum is optional. Why ?

2 Answers

0 0 votes

 

TCP is a guaranteed delivery protocol which not only give guarantee of delivery of packets but also correctness whereas USP does not provide any such guarantee. That is the precise reason why UDP packets include checksum field as optional (16 bit CRC checksum) which the receiving operating system will use to check for packet corruption. If the checksum is present and fails, then the packet will be silently discarded. It is up to the application to notice that the packet disappeared and take corrective action, where in case of TCP re-transmission takes place.

Yes unlike TCP, Checksum calculation is not mandatory in UDP. No Error control or flow control is provided by UDP. 
Hence UDP depends on IP and ICMP for error reporting.

So it depends on other layers hence not mandatory requirement.

Ref:

https://www.queryhome.com/tech/157481/why-tcp-checksum-is-mandatory-but-in-udp-checksum-is-optional

 

Position:
Show:

Related questions

1 1 vote
1 answers 1 answer
231
231 views
Akash t asked Jun 4
231 views
True /False -Transport layer protocols like TCP, UDP and Network layer protocol like IP, ICMP, RARP can be distinguished by protocol field of IP protocol.
1 1 vote
1 1 answer
1.0k
1.0k views
Jeetmoni saikia asked Nov 4, 2022
1,036 views
The underlying Transport layer protocol used by SMTP is ________(a) TCP(b) UDP(c) Either TCP or UDP
1 1 vote
1 1 answer
1.2k
1.2k views
ajaysoni1924 asked Apr 18, 2019
1,228 views
In our rdt protocols, why did we need to introduce timers?