09.12.2012 Views

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The TCP Header<br />

The TCP header provides <strong>the</strong> means for communication about <strong>the</strong> TCP<br />

process between <strong>the</strong> two TCP endpoints. The header (as shown in<br />

Figure 2.16) provides <strong>the</strong> data sequencing and acknowledgment<br />

information, and serves as <strong>the</strong> facility for connection setup and<br />

disconnection.<br />

Figure 2.16. The TCP packet header.<br />

The TCP packet can be up <strong>to</strong> 65KB in size. Because TCP is <strong>network</strong><br />

independent, packet size limitation is not a priority. IP fragments <strong>the</strong><br />

TCP packets in<strong>to</strong> sizes it can transport efficiently. The TCP header is<br />

40 bytes in size, which is ra<strong>the</strong>r large for a <strong>network</strong> packet header.<br />

The header is so large because it needs <strong>to</strong> carry all <strong>the</strong> data control<br />

information.<br />

The header dedicates memory segments or fields <strong>to</strong> provide <strong>the</strong><br />

information needed <strong>to</strong> deliver and reassemble <strong>the</strong> ULP data in<strong>to</strong> an<br />

unaltered state. These fields are as follows:<br />

• Source Port—This is <strong>the</strong> TCP port <strong>the</strong> process is coming from.<br />

• Destination Port—This is <strong>the</strong> TCP port <strong>the</strong> process is sending<br />

data <strong>to</strong>.<br />

• Sequence Number—This is <strong>the</strong> sequence number for data<br />

contained in <strong>the</strong> packet.<br />

• Acknowledgment Number—This field contains <strong>the</strong> sequence<br />

number <strong>the</strong> sender expects <strong>to</strong> receive from <strong>the</strong> destination.<br />

• Data Offset—This field indicates how large <strong>the</strong> TCP header is.<br />

• Control flags indicate <strong>the</strong> status of <strong>the</strong> TCP connection:<br />

o SYN sets up TCP connections.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!