The Transport Layer establishes port-to-port communication.
The IP addresses at the network layer distinguish subnets. MAC addresses at the Ethernet layer help us find hosts. Then everyone is using applications. You may have multiple applications on your computer, such as QQ, storm audio and video, and so on. Then we found a specific host through IP address and Mac, the answer to how to identify the application on this host is the port, which is the number associated with the application and the NIC.
TCP protocol
Reliable transmission: TCP data packets have no length restrictions. Theoretically, they can be infinitely long. However, to ensure network efficiency, the length of TCP data packets will not exceed the length of IP data packets, to ensure that a single TCP packet does not need to be split.
UDP protocol
Unreliable transmission. The "Header" contains only eight bytes, and the total length cannot exceed 65,535 bytes. It is placed into an IP packet.
TCP/UDP protocol