Chapter 7 Part 2
Chapter 7 Part 2
2
Features of a TCP protocol
❑ Reliable
◉ supports the acknowledgment mechanism, which checks the state and
sound arrival of the data.
◉ the receiver sends either positive or negative acknowledgment to the
sender so that the sender can get to know whether the data packet has
been received or needs to resend
❑ Order of the data is maintained
◉ It orders and numbers each segment so that the TCP layer on the
destination side can reassemble them based on their ordering.
3
Features of a TCP protocol
❑ Connection-oriented
◉ The data exchange occurs only after the connection establishment. When
the data transfer is completed, then the connection will get terminated.
❑ Full duplex
◉ It is a full-duplex means that the data can transfer in both directions at the
same time.
❑ Stream-oriented
◉ It allows the sender to send the data in the form of a stream of bytes and
also allows the receiver to accept the data in the form of a stream of bytes.
4
5
TCP Header format
◉ Source port: It defines the port of the application, which is sending the
data. So, this field contains the source port address, which is 16 bits.
◉ Destination port: It defines the port of the application on the receiving
side. So, this field contains the destination port address, which is 16 bits.
◉ Sequence number. This 32-bit field defines the number assigned to the
first byte of data contained in this segment
◉ TCP is a stream transport protocol. To ensure connectivity, each byte to be
transmitted is numbered
6
TCP Header format
7
TCP Header format
8
TCP Header format
9
TCP Header format
◉ Window size: It is a 16-bit field. It contains the size of data that the receiver
can accept. This field is used for the flow control between the sender and
receiver and also determines the amount of buffer allocated by the receiver
for a segment
◉ The maximum size of the window is 65,535 bytes.
◉ Checksum
It is a 16-bit field. This field is optional in UDP, but in the case of TCP/IP,
this field is mandatory.
10
TCP Header format
◉ Urgent pointer: This l6-bit field, which is valid only if the urgent flag is
set, is used when the segment contains urgent data.
◉ It defines the number that must be added to the sequence number to obtain
the number of the last urgent byte in the data section of the segment
◉ Options
It provides additional options. The optional field is represented in 32-bits
11
Connection Establishment In TCP
12
Connection Establishment In TCP
13
Connection Establishment In TCP
14
Connection Establishment In TCP
3. The client sends the third segment. This is just an ACK segment.
◉ It acknowledges the receipt of the second segment with the ACK flag
and acknowledgment number field
15
Data Transfer
16
Data Transfer
17
Data Transfer
18
Connection Termination
19
Error Control
20
WANT BIG IMPACT?
USE BIG IMAGE.
21
DESKTOP PROJECT
Show and explain your web,
app or software projects using
these gadget templates.
22