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

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

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

FIGURE 3.4 UDP segment<br />

TCP/IP and the DoD Model 111<br />

UDP receives upper-layer blocks of information, instead of data streams<br />

as TCP does, and breaks them into segments. Like TCP, each UDP segment<br />

is given a number for reassembly into the intended block at the destination.<br />

However, UDP does not sequence the segments and does not care in which<br />

order the segments arrive at the destination. At least it numbers them,<br />

though. But after that, UDP sends the segments off and forgets about them.<br />

It doesn’t follow through, check up on them, or even allow for an acknowledgment<br />

of safe arrival—complete abandonment. Because of this, it’s<br />

referred to as an unreliable protocol. This does not mean that UDP is ineffective,<br />

only that it doesn’t handle issues of reliability.<br />

Further, UDP doesn’t create a virtual circuit, nor does it contact the destination<br />

before delivering information to it. It is, therefore, also considered<br />

a connectionless protocol. Since UDP assumes that the application will use<br />

its own reliability method, it doesn’t use any. This gives an application developer<br />

a choice when running the Internet Protocol stack: TCP for reliability<br />

or UDP for faster transfers.<br />

UDP Segment Format<br />

The very low overhead of UDP compared to TCP, which doesn’t use windowing<br />

or acknowledgments, is shown in Figure 3.4.<br />

Bit 0 Bit 15<br />

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

Length (16) Checksum (16)<br />

Data (if any)<br />

Bit 16 Bit 31<br />

You need to understand what each field in the UDP segment is. The UDP<br />

segment contains the following fields:<br />

Source port Port number of the host sending the data<br />

Destination port Port number of the application requested on the destination<br />

host<br />

8 bytes

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

Saved successfully!

Ooh no, something went wrong!