Question: what are the advantages and disadvantages between tcp and udp?
Answer: The main advantages for UDP are that datagram boundaries are respected, you can broadcast, and it is fast. The main disadvantage is unreliability and therefore complicated to program at the application level. TCP and UDP use the same addressing scheme.