6_TCPStudy_spring10

6_TCPStudy_spring10 - Chapter 6 TCP Study TCP/IP Essentials...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
TCP/IP Essentials A Lab-Based Approach Chapter 6 Chapter 6 TCP Study TCP Study Spring 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Polytechnic Institute of NYU Slide 2 zjzhao TCP Overview • A transport layer protocol • Provides connection-oriented, reliable service to applications, such as HTTP, email, FTP, telnet… • Support unicast only •F e a t u r e s – Error control – Flow control – Congestion control
Background image of page 2
Polytechnic Institute of NYU Slide 3 zjzhao TCP Header Format IP header TCP header TCP data 20 bytes 20 bytes
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Polytechnic Institute of NYU Slide 4 zjzhao TCP Header Fields •Source Port Number: – 16 bits – The port number of the source process •Destination Port Number: – 16 bits – The port number of the destination process •Sequence Number: – 32 bits – Identifies the byte the byte in the stream of data from the sending TCP to the receiving TCP that the first byte of data in this segment represents •Acknowledgement Number: – 32bits – The next sequence number that the host wants to receive •Header Length, a.k.a. Data Offset – 4 bits – The length of the header in 32 in 32 -bit words bit words •Reserved for future use: 6 bits
Background image of page 4
Polytechnic Institute of NYU Slide 5 zjzhao TCP Header Fields (cont’d) • Window Size: – 16 bits – The maximum number of bytes that a receiver can accept • TCP Checksum: – 16bits – Covers both the TCP header and TCP data • Flags: 6 bits – URG: an urgent message is being carried. – ACK: the acknowledgment number is valid. – PSH: a notification from the sender to the receiver that it should pass all the data received to the application as soon as possible. – RST: signals a request to reset the TCP connection. – SYN: set when initiating a connection. – FIN: set to terminate a connection. • Urgent Pointer – 16 bits – If the URG flag is set, the pointer points to the last byte of the urgent message in the TCP payload.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Polytechnic Institute of NYU Slide 6 zjzhao TCP Connection • Source and destination port numbers identify the sending and receiving application processes, respectively. Socket : the combination of and IP address and a port number • A TCP connection is uniquely identified by the two end sockets.
Background image of page 6
Polytechnic Institute of NYU Slide 7 zjzhao TCP Connection Management •TCP connection establishment: two end TCP modules – Allocate required resources for the connection, and – Negotiate the value of the parameter uses, such as > Maximum Segment Size (MSS) > Receiving buffer size (i.e. advertised WINdow, WIN) > Initial Sequence Number (ISN) •TCP connection termination •TCP timers
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Polytechnic Institute of NYU Slide 8 zjzhao TCP Connection Establishment Three-way Handshake • An end host initiates a TCP connection by sending a packet with –ISN , n , in the sequence number field, – An empty payload field, – MSS, – TCP receiving window size, and – SYN flag bit is set.
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 46

6_TCPStudy_spring10 - Chapter 6 TCP Study TCP/IP Essentials...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online