title: Why does UDP have a length field in the header and TCP does not?
body: <p>Why does UDP have a length field in the header and TCP does not?</p>
  
  <p>I am guessing that the length of the segment in TCP is inferred from the IP header but one should be able to do the same for a UDP datagram</p>