TCP allows the developer to setup data communication between virtual instruments on a network using internet protocol addresses and port numbers. TCP sets up an end to end connection between the two communicating parties over which the data is sent. For each message sent, the receiver has to know the length of the package sent in order to use the correct number of bytes in determining the message that was sent. With the ability to send and receive messages of varying lengths, one can develop various complicated methods for the transfer of data with the use of state machines. TCP can be used with any protocol that is built with TCP as its base like http, ftp etc. It enables the developer to set up communications between clients where the clients can “negotiate” on the data to be transferred and how it will be transferred.
The Advantage:
- Variable length messages allows clients to negotiate the transfer of information
- Data that is transferred is buffered by receiver
- Servers can be built where desired
The Disadvantage:
- Can be complicated to setup
This method of data transfer can be used for most kinds of data. With a little extra knowledge one can be able to set up interesting communication models between applications.
Implementation:
A typical sender-receiver implementation is shown in the Figure. 1
Transmission Control Protocol |
---|
No comments:
Post a Comment