In a computer network, data are exvhanged and divided into units such as "segments","packets", and "frames" . It is a unit defined by different communication protocols. Using TCP for segments, IP for packets, and Ethernet for frames. Before starting it is better to get acquainted with a term called Protocol Data Unit (PDU).The term PDU is used to refer to the packets in different layers of the OSI model. Thus PDU gives an abstract idea of the data packets. The PDU has a different meaning in different layers still we can use it as a common termxender.omegle
The role of IP is to connect across LAN boundaries. TCP is in charge of error control and specification of the application of the communication partner.
When an application tries to send data, the data is split into TCP segments. From there, IP packets are assembled and Ethernet frames are formed from the IP packets. When this is sent to the network and reaches the communication partner, the data is retrieved in the reverse order.
Control information called a header is added to each of the segment, packet, and frame. In the TCP header, the "port number" of the destination and the source is described. The port number is a number that identifies the application.
