5 TCP portA TCP port defines a location for the delivery of TCP connection data. Included in each TCP segment is the source port that indicates the Application Layer process from which the segment was sent, and a destination port that indicates the Application Layer process to which the segment was sent. There are port numbers that are assigned by the Internet Assigned Numbers Authority (IANA) to specific Application Layer protocols.
6 Table 10-1 shows assigned TCP port numbers used by components of Windows Server 2008 and Windows Vista.
7 GetServByName() Function A Windows Sockets application using the GetServByName() function can refer to a TCP port number by name. The name is resolved to a TCP port number through the Services file stored in the %SystemRoot%\System32\Drivers\Etc folder.A sending node determines the destination port (using either a specified value or the GetServByName() function) and the source port (using either a specified value, or by obtaining a dynamically allocated port through Windows Sockets). The sending node then passes the source IP address, destination IP address, source port, destination port, and the data to be sent to TCP/IP. The TCP component segments the data as needed. The TCP component calculates the Checksum field and indicates the TCP segment with the appropriate source IP address and destination IP address to the IP component.
8 Figure 10-3 shows the de-multiplexing of received TCP connection data based on the TCP destination port.
10 The TCP flags are defined as follows CWR (congestion window has been reduced)ECE (TCP peer is ECN-capable)URG (Urgent Pointer field is significant)ACK (Acknowledgment field is significant)PSH (the Push function)RST (Reset the connection)SYN (Synchronize sequence number)FIN (Finish sending data)
14 TCP Options End Of Option List No Operation Maximum Segment Size Option
15 TCP Window Scale Option Figure The structure of the TCP Window Scale option
16 Selective Acknowledgment Option The selective acknowledgment scheme defines the following two different TCP options:The Selective Acknowledgment (SACK)-Permitted option to negotiate the use of selective acknowledgments during the connection establishment process.The SACK option to indicate the non-contiguous data blocks that have been received
17 The SACK-Permitted Option Figure The structure of the TCP SACK-Permitted option
18 The SACK OptionFigure The structure of the TCP SACK option
19 TCP Timestamps OptionFigure The structure of the TCP Timestamps option
20 TCP Timestamps OptionFigure An example of the use of the TCP Timestamps option.
21 SummaryTCP provides connection-oriented and reliable data transfer for applications that require end-to-end guaranteed delivery service. Application Layer protocols use TCP for one-to-one traffic. The TCP header provides sequencing, acknowledgment, a check sum, and the identification of source and destination port numbers to multiplex TCP segment data to the proper Application Layer protocol. TCP options are used to indicate maximum segment sizes and window scaling, indicate and provide selective acknowledgments, and provide timestamps for better RTT determination.
Your consent to our cookies if you continue to use this website.