05.01.2013 Views

CCNA Cisco Certified Network Associate Study Guide - FTP Server

CCNA Cisco Certified Network Associate Study Guide - FTP Server

CCNA Cisco Certified Network Associate Study Guide - FTP Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

108 Chapter 3 � Internet Protocol<br />

two TCP layers also agree on the amount of information that’s going to be<br />

sent before the recipient’s TCP sends back an acknowledgment. With everything<br />

agreed upon in advance, the path is paved for reliable communication<br />

to take place.<br />

TCP is a full-duplex, connection-oriented, reliable, accurate protocol, and<br />

establishing all these terms and conditions, in addition to error checking, is<br />

no small task. TCP is very complicated and, not surprisingly, costly in terms<br />

of network overhead. Since today’s networks are much more reliable than<br />

those of yore, this added reliability is often unnecessary.<br />

TCP Segment Format<br />

Since the upper layers just send a data stream to the protocols in the Transport<br />

layers, we’ll demonstrate how TCP segments a data stream and prepares<br />

it for the <strong>Network</strong> layer. The <strong>Network</strong> layer then routes the segments<br />

as packets through an internetwork. The packets are handed to the receiving<br />

host’s Transport layer protocol, which rebuilds the data stream to hand to<br />

the upper-layer applications or protocols.<br />

Figure 3.3 shows the TCP segment format. The figure shows the different<br />

fields within the TCP header.<br />

FIGURE 3.3 TCP segment format<br />

Bit 0 Bit 15<br />

Header<br />

length (4)<br />

Source port (16) Destination port (16)<br />

Reserved (6)<br />

Checksum (16)<br />

Sequence number (32)<br />

Acknowledgment number (32)<br />

Code bits (6)<br />

Options (0 or 32 if any)<br />

Data (varies)<br />

Bit 16 Bit 31<br />

Window (16)<br />

Urgent (16)<br />

20 bytes

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

Saved successfully!

Ooh no, something went wrong!