09.03.2013 Views

Brocade_IP_Primer_eBook

Brocade_IP_Primer_eBook

Brocade_IP_Primer_eBook

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 2: TCP/<strong>IP</strong><br />

In summary, the 3-way handshake looks like this:<br />

1. Client sends TCP SYN to server<br />

2. Server sends TCP SYN/ACK to client<br />

3. Client sends TCP ACK to server<br />

Windows and Acknowledgments<br />

Now you've initiated the session. It's time to start communicating. Here, the client<br />

requests some data. The server sends an acknowledgment (ACK) to tell<br />

the client that it has received the request. Now the server will start sending<br />

segments.<br />

In our example, let's say that the server is going to send 20 kilobytes (20,480<br />

bytes) of data. The Transport Layer, on the server side, is going to divide that<br />

20 KB into several segments. It's going to number the segments so that the client<br />

will know how to reassemble them, and to make sure that it received them<br />

all. When the server starts sending segments, it will send a few at a time and<br />

wait for an acknowledgment from the client. This is the window.<br />

The window is measured in bytes, not segments. The server will send segments<br />

until it has reached the window size. In our example, let's say that the<br />

window size of the server is 5,120 bytes (5 KB). That means that the server<br />

will send segments until it has sent 5 KB worth of segments. Then it will wait to<br />

receive an acknowledgment (ACK) from the client. When it does, it will send<br />

another 5 KB worth of segments, and so on.<br />

Request Data<br />

TCP ACK<br />

TCP ACK<br />

1 KB Segment<br />

1 KB Segment<br />

1 KB Segment<br />

1 KB Segment<br />

1 KB Segment<br />

1 KB Segment<br />

1 KB Segment<br />

1 KB Segment<br />

1 KB Segment<br />

1 KB Segment<br />

58 <strong>Brocade</strong> <strong>IP</strong> <strong>Primer</strong>

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

Saved successfully!

Ooh no, something went wrong!