In the TCP/IP protocol family, the underlying layer is composed of basic communication channels, such as Ethernet or modem dial-up connections. These channels are used by the network layer, and the network layer is used to transmit packets to their destination addresses (vrouters. The only network-layer protocol in www.2cto.com is the IP protocol, which makes a series of channels between two hosts and routers look like a single channel between the host and the host. The IP protocol provides a data service: each group of packets is processed and distributed independently by the network, just as a mail or package is sent through the postal system. To implement this function, each IP packet must contain a field that stores its destination address. The transport layer is called the transport layer. It provides two Optional Protocols: TCP and UDP. They have one thing in common: addressing. The address used by TCP/UDP protocol is called the port number, which is used to distinguish different applications on the same host. They transmit data from one application to another. The IP protocol only transmits data from one host to another. The TCP protocol www.2cto.com can detect and restore possible packet loss, duplication, and other errors from the host provided by the IP layer to the channel of the host. Before using TCP communication, we recommend a TCP link between applications. This involves the handshake protocol between TCP components of two computers. However, UDP does not attempt to generate error recovery on the IP layer.