What is the Significance of Pseudo Header used in UDP/TCP

前端 未结 5 1079
孤街浪徒
孤街浪徒 2020-12-15 18:00

Why is the Pseudo header prepended to the UDP datagram for the computation of the UDP checksum? What\'s the rational behind this?

5条回答
  •  别那么骄傲
    2020-12-15 18:18

    When these protocols were being designed, a serious concern of theirs was a host receiving a packet thinking it was theirs when it was not. If a few bits were flipped in the IP header during transit and a packet changed course (but the IP checksum was still correct), the TCP/UDP stack of the redirected receiver can still know to reject the packet.

    Though the pseudo-header broke the separation of layers idiom, it was deemed acceptable for the increased reliability.

提交回复
热议问题