The main function of TCP is to divide the message or data into packets of a definite size on the source computer.