How does TCP establish a session?

. What is a subnet and why do networks need them?

. What is a subnet mask?

. How does dynamic addressing work?