Question: what is in a tcp/ip packet?
Answer: The TCP header contains the source and destination port numbers. So TCP segment in turn is passed to the IP layer where it is encapsulated in an IP packet. The IP packet header contains an IP network address for the sender and an IP network address for the destination.