20.01.2014 Views

Lectures notes for 2010 - KTH

Lectures notes for 2010 - KTH

Lectures notes for 2010 - KTH

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.

TCP Header<br />

0 7 8 15 16 23 24 31<br />

16 bit source port 16 bit destination port<br />

32 bit sequence number<br />

4 bit header<br />

length<br />

reserved<br />

(6 bits)<br />

U<br />

R<br />

G<br />

A<br />

C<br />

K<br />

32 bit acknowledgement number<br />

P<br />

S<br />

H<br />

R<br />

S<br />

T<br />

S<br />

Y<br />

N<br />

F<br />

I<br />

N<br />

16 bit window size<br />

20 bytes<br />

16 bit TCP checksum 16 bit urgent pointer<br />

options (if any)<br />

data (if any - padded to a multiple of 16 bits)<br />

Figure 1: IP header (see Stevens, Vol. 1. inside cover or Forouzan figure 12.5 pg. 282)<br />

Just as with UDP, TCP provides de/multiplexing via the 16 bit source and<br />

destination ports.<br />

The 4 bit header length indicates the number of 4-byte words in the TCP header<br />

Maguire TCP Header 5: 6 of 77<br />

maguire@kth.se <strong>2010</strong>.03.21 Internetworking/Internetteknik

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

Saved successfully!

Ooh no, something went wrong!