As data is encapsulated, we now have data, along with a segment that holds either a TCP or UDP port. The next part of encapsulation is creating a packet by adding the source and destination IPv4 or IPv6 address in the IP header, as shown here:
The encapsulation process—packet
The last part of the encapsulation process is the addition of the frame header, as shown in the next section.