JustAnswer.com

Saturday, January 19, 2008

Tcp Tutorial-2

The TCP\IP suite not only helps to transfer data but also has to correct various problems that might occur

during the data transfer. There are basically two types of most common errors that might occur during the process of data transfer. They are-:

Data Corruption -: In this kind of error, the data reaches the destination after getting corrupted. Data Loss -: In this kind of error, the entire collection of packets which constitute the data to be transferred does not reach the destination.

TCP\IP expects such errors to take place and has certain features which prevent, such error which might occur.

Checksums-: A checksum is a value (Normally, a 16 Bit Value) that is formed by summing up the Binary Data in the used program for a given data block. The program being used is responsible for the calculation of the Checksum value. The data being sent by the program sends this calculated checksum value, along with the data packets to the destination. When the program running at the destination receives the data packets, it re-calculates the Checksum value. If the Checksum value calculated by the Destination program matches with the Checksum Value attached to the Data Packets by the Source Program match, then the data transfer is said to be valid and error free. Checksum is calculated by adding up all the octets in a datagram.

No comments: