Transport Layer (TCP & UDP)

how TCP and UDP work and when to use each.