 Each of those packets is encapsulated in an IP packet, whose IP header contains a source IP address and a destination IP address.The IP address/protocol/port number triple forms a socket.In particular, the source IP address and source port number form the source socket.