MicroSoft World |
|
|
Transmission Control Protocol (TCP) is the transport layer protocol in the TCP/IP protocol suite, which provides a reliable stream delivery and virtual connection service to applications through the use of sequenced acknowledgment with retransmission of packets when necessary. Along with the Internet Protocol (IP), TCP represents the heart of the Internet protocols. Since many network applications may be running on the same machine, computers need something to make sure the correct software application on the destination computer gets the data packets from the source machine, and some way to make sure replies get routed to the correct application on the source computer. This is accomplished through the use of the TCP "port numbers". The combination of IP address of a network station and its port number is known as a ˇ°socketˇ± or an "endpoint". TCP establishes connections or virtual circuits between two "endpoints" for reliable communications. Details of TCP port numbers could be found in the TCP/UDP Port Number document and in the reference. Among the services TCP provides are stream data transfer, reliability, efficient flow control, full-duplex operation, and multiplexing. With stream data transfer, TCP delivers an unstructured stream of bytes identified by sequence numbers. This service benefits applications because that the application does not have to chop data into blocks before handing it off to TCP. TCP can group bytes into segments and passes them to IP for delivery. TCP offers reliability by providing connection-oriented, end-to-end reliable packet delivery. It does this by sequencing bytes with a forwarding acknowledgment number that indicates to the destination the next byte the source expects to receive. Bytes not acknowledged within a specified time period are retransmitted. The reliability mechanism of TCP allows devices to deal with lost, delayed, duplicate, or misread packets. A time-out mechanism allows devices to detect lost packets and request retransmission. TCP offers efficient flow control - when sending acknowledgments back to the source, the receiving TCP process indicates the highest sequence number it can receive without overflowing its internal buffers. Full-duplex operation: TCP processes can both send and receive packets at the same time. Multiplexing in TCP: numerous simultaneous upper-layer conversations can be multiplexed over a single connection. |
|
Protocol Structure - TCP Transmission Control Protocol |
16 bits |
32 bits |
|||||||
Source port |
Destination port |
|||||||
Sequence number |
||||||||
Acknowledgement number |
||||||||
Offset |
Reserved |
U |
A |
P |
R |
S |
F |
Window |
Checksum |
Urgent pointer |
|||||||
Option + Padding |
||||||||
Data |
|
OSI Model || TCP || UDP || RARP || IP || TELNET ||SNMP || SMTP || FTP || ICMP || IGMP || ARP
Copyright © 2000 - 2005 sourabhvikas. All rights reserved Worldwide. |
Feedback || Disclaimer || Privacy Policy |