Please enable JavaScript.
Coggle requires JavaScript to display documents.
TCP Communication Process, Reliability and Flow Control, ABDUL HAFIY…
TCP Communication Process
TCP Three-way Handshake Analysis
The three way handshake:
Establishes that the destination device is present on the network.
Verifies that the destination device has an active service and is accepting requests on the destination port number that the initiating client intends to use.
Informs the destination device that the source client intends to establish a communication session on that port number.
Three-way handshake process:
Step 1:
In the first step, the client establishes a connection with a server. It sends a segment with SYN and informs the server about the client should start communication, and with what should be its sequence number.
Step 2:
In this step server responds to the client request with SYN-ACK signal set. ACK helps you to signify the response of segment that is received and SYN signifies what sequence number it should able to start with the segments
Step 3:
In this final step, the client acknowledges the response of the Server, and they both create a stable connection will begin the actual data transfer process.
Summary:
TCP 3-way handshake or three-way handshake or TCP 3-way handshake is a process which is used in a TCP/IP network to make a connection between server and client.
The six bits in the Control Bits field of the TCP segment header are also known as flags.
RST flag is used to reset a connection when an error or timeout occurs
SYN-Used to initiate and establish a connection. It also helps you to synchronize sequence numbers between devices.
ACK-Helps to confirm to the other side that it has received the SYN.
FIN-Used to terminate a connection
URG-Urgent point field significant
THREE-WAY HANDSHAKE or a TCP 3-way handshake is a process which is used in a TCP/IP network to make a connection between the server and client. It is a three-step process that requires both the client and server to exchange synchronization and acknowledgment packets before the real data communication process starts.
Three-way handshake process is designed in such a way that both ends help you to initiate, negotiate, and separate TCP socket connections at the same time. It allows you to transfer multiple TCP socket connections in both directions at the same time.
Reliability and Flow Control
TCP Reliability – Ordered Delivery
Sequence numbers are assigned
in the header of each packet.
Represents the first data byte of
the TCP segment.
During session setup, an initial sequence number (ISN) is set - represents the starting value of the bytes.
As data is transmitted during the session, the sequence number is incremented by the number of bytes that have been transmitted.
Missing segments can then be identified.
TCP is a reliable stream delivery service which guarantees that all bytes received will be identical and in the same order as those sent.
The internet layer software encapsulates each TCP segment into an IP packet by adding a header that includes (among other data) the destination IP address.
TCP tries to guarantee that if the data is delivered, it's correct and in order. It uses checksums to ensure data isn't corrupted, and sequence numbers to ensure that data is delivered in order and with no gaps.
TCP provides reliable message delivery. TCP ensures that data is not damaged, lost, duplicated, or delivered out of order to a receiving process.
TCP achieves this reliability by assigning a sequence number to each octet it transmits and requiring a positive acknowledgment (ACK) from the receiving TCP.
ABDUL HAFIY KAMALUDDIN BIN ABDUL RANI
AHMAD FAKHRURIZZUDIN BIN AHMAD FAIRUZ