Question: what are pipes and sockets?
Answer: pipes only exist within a specific host, and they refer to buffering between virtual files, or connecting the output / input of processes within that host. There are no concepts of packets within pipes. sockets packetize communication using IPv4 or IPv6; that communication can extend beyond localhost.