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.

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

A telephone analogy might help you understand how TCP works. Most of<br />

us know that before you speak to someone on a phone, you must first establish<br />

a connection with that other person—wherever they might be. This is<br />

like a virtual circuit with the TCP protocol. If you were giving someone<br />

important information during your conversation, you might ask, “Did you<br />

get that?” A query like that is similar to a TCP acknowledgment. From time<br />

to time, for various reasons, people also ask, “Are you still there?” They end<br />

their conversations with a “goodbye” of some kind, putting closure on the<br />

phone call. TCP also performs these types of functions.<br />

Alternately, using UDP is like sending a postcard. To do that, you don’t<br />

need to contact the other party first. You simply write your message, address<br />

the postcard, and mail it. This is analogous to UDP’s connectionless orientation.<br />

Since the message on the postcard is probably not a matter of life or<br />

death, you don’t need an acknowledgment of its receipt. Similarly, UDP does<br />

not involve acknowledgments.<br />

Port Numbers<br />

TCP and UDP must use port numbers to communicate with the upper layers.<br />

Port numbers keep track of different conversations crossing the network<br />

simultaneously. Originating-source port numbers are dynamically assigned<br />

by the source host, which will be some number starting at 1024. 1023 and<br />

below are defined in RFC 1700, which discusses what is called well-known<br />

port numbers.<br />

Virtual circuits that do not use an application with a well-known port<br />

number are assigned port numbers randomly chosen from within a specific<br />

range instead. These port numbers identify the source and destination host<br />

in the TCP segment.<br />

Figure 3.5 illustrates how both TCP and UDP use port numbers.<br />

FIGURE 3.5 Port numbers for TCP and UDP<br />

Application<br />

layer<br />

Port<br />

numbers<br />

Transport<br />

layer<br />

<strong>FTP</strong> Telnet Doom DNS T<strong>FTP</strong> POP3<br />

21<br />

23<br />

TCP<br />

666<br />

53<br />

69<br />

UDP<br />

110<br />

News<br />

144

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

Saved successfully!

Ooh no, something went wrong!