[next] [tail] [up]
Internetworking: The Transport Layer of TCP/IP
- IP delivers data between host computers. The transport protocols deliver data between processes.
- Connection-oriented with sliding window protocol for handling flow control.
- The data is transmitted in segments, but logically viewed as consisting of bytes. The bytes are
numbered modulo 232 .
- Sequence numbers refer to bytes in the data streams rather than to numbers of segments.

- Source/Destination Ports Port numbers are to be arranged by the communicating parties,
however, some numbers are reserved for special applications.
| protocol | port assignment |
| echo | 7 |
| daytime | 13 |
| ftp | 21 |
| telnet | 23 |
| simple mail | 25 |
| time | 37 |
| whois | 43 |
| trivial
ftp | 69 |
| finger | 79 |
- Sequence and Acknowledgment Numbers Byte-stream sequencing is assumed.
- Window Size Tells the receiving TCP module the number of bytes that the sender is willing to
accept.
- Header Length In units of 4 bytes, for identifying the start of the data.
- URG Notifies that the Urgent pointer field points to valid data. The TCP module must process
urgent data before processing any other data.
- ACK Tells that the Acknowledgment field
holds valid data.
- PSH Requests a push, that is, that the receiver immediately send
the data to the destination application without waiting for its buffer to reach some
threshold.
- Telnet applications normally set this flag. By doing so, telnet forces TCP to immediately pass the
user's keyboard inputs to the telnet server. This helps eliminate delays in echoing the received
character back to the sender.
- RST Asks the receiving TCP module to reset the TCP connection. A
TCP will send a message with the RST flag when it detects a problem with the connection. Most
applications simply terminate when they receive this flag.
- SYN Asks to synchronize the
sequence numbers
- FIN Tells the receiving TCP module that the sender has finished
sending data.
- Urgent Pointer Points to last byte of urgent data in the TCP data area.
- Options
[next] [front] [up]