Explain the differences between IPsec and TLS. What are the key characteristics of each protocol? In what scenarios would you choose one over the other for securing communications in embedded devices? Consider aspects like performance, complexity, and security needs.