The Transport layer matches OSI Layer .
TCP:
- Connection-oriented (-way handshake)
- Reliable (acknowledgments, retransmissions)
- Ordered (sequence numbers)
UDP:
- Connectionless
- Unreliable
- Fast
Choose TCP when every byte must arrive. Choose UDP when speed beats completeness. Both use ports (-) to identify applications.