문제

Is it a well known fact that UDP (User Datagram Protocol) is not secure, because the order of the packets sent with it may not be delivered in order, even at all. However if an UDP packet is delivered. Are the information in that packet in practical sense (99.99% and above), guaranteed to be correct?

Is a UDP packet quaranteed to be complete (not corrupted) if delivered, in practical sense (99.99% and above)?

Thanks in advance!

도움이 되었습니까?

해결책

No for two reasons:

  • UDP checksums are not mandatory (with IPv4). So corrupted packets can be delivered to applications.
  • Internet checksums can clash much more frequently than other hashes. So even if the checksum matches, the data may be corrupted.

다른 팁

I am no expert but as far as I know, although there isn't any guarantee that the package reaches the destination at all in the most cases it should be correct if it reaches the destination. I think that should be the case because normally there is an error check (Frame Check Sum) on the Data Link Layer.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top