Sending data over TCP connection

As part of TCP packet, there is sequence number. Since multiple TCP packets maybe needed to transfer the data, and TCP packets may take different routes to destination host, each TCP packet includes sequence number, or the order in which destination host needs to reassemble data.

Once the communication is over FIN packet is send to indicate the end of transmission.

YouTube video

Comments