Skip to main content

Do you know about TCP 3-Way Handshake Process?


This could even be seen as the simplest way of how TCP connection is established. Before moving into the main points, allow us to study some basics. TCP stands for Transmission Control Protocol which indicates that it does something to manage the transmission of the info during a reliable way.




The process of communication between devices over the web happens in step with this TCP/IP suite model(stripped out version of OSI reference model). the applying layer could be a top pile of stack of TCP/IP model from where network referenced application like applications program on the client side establish reference to the server. From the applying layer, the information is transferred to the transport layer where our topic comes into picture. the 2 important protocols of this layer are – TCP, UDP(User Datagram Protocol) out of which TCP is prevalent(since it provides reliability for the connection established). However you'll find application of UDP in querying the DNS server to urge the binary equivalent of the name used for the web site.

TCP provides reliable communication which is called PAR (Positive Acknowledgement with Re-transmission). The Protocol Data Unit(PDU) of the transport layer is named segment. Now a tool using PAR resend the info unit until it receives an acknowledgement. If the information unit received at the receiver’s end is damaged(It checks the info with checksum functionality of the transport layer that's used for Error Detection), then receiver discards the segment. that the sender needs to resend the information unit that positive acknowledgement isn't received. you'll be able to realize from above mechanism that three segments are exchanged between sender(client) and receiver(server) for a reliable TCP connection to urge established. allow us to delve how this mechanism works :



Step 1 (SYN) : within the opening move, client wants to determine a reference to server, so it sends a segment with SYN(Synchronize Sequence Number) which informs server that client is probably going to start out communication and with what sequence number it starts segments with

Step 2 (SYN + ACK):
Server responding to all of the client request with set of SYN-ACK signal bits. Acknowledgement(ACK) signifies the response of segment it received and SYN signifies with what sequence number it's likely to begin the segments.

Step 3 (ACK) : within the final part client acknowledges the response of server and that they both establish a reliable reference to which they'll start the particular data transfer

The steps 1, 2 creating the connection signals (sequence number) for one direction and it's acknowledged. The steps 2, 3 establish the connection parameter (sequence number) for the opposite direction and it's acknowledged. With these, a full-duplex communication is established.

Note – Initial sequence numbers are randomly selected while establishing connections between client and server.


Reference-


Connection establishment – Wikipedia

Comments

Popular posts from this blog

What is STP? - Explain Advantages and Disadvantages

The Spanning Tree Protocol is a network protocol that builds a loop-free logical topology for Ethernet networks. The basic function of STP is to prevent bridge loops and the broadcast radiation that results from them. STP is a protocol. It actively monitors all links of the network. To finds a redundant link, it uses an algorithm, known as the STA (spanning-tree algorithm). The STA algorithm first creates a topology database then it finds and disables the redundant links. Once redundant links are disabled, only the STP-chosen links remain active. If a new link is added or an existing link is removed, the STP re-runs the STA algorithm and re-adjusts all links to reflect the change. STP (Spanning Tree Protocol) automatically removes layer 2 switching loops by shutting down the redundant links. A redundant link is an additional link between two switches. A redundant link is usually created for backup purposes. Just like every coin has two sides, a redundant link, along with

What are the Advantages and Disadvantages of TCP/UDP ?? Difference between TCP and UDP

As in previous blog we have define and explain about what is TCP and UDP and from now we are moving ahead with Advantages, Disadvantages and Difference of TCP and UDP but for this you have to know about TCP and UDP hence to understand it go for a What is TCP and UDP . Advantage of TCP Here, are pros/benefits of TCP: It helps you to establish/set up a connection between different types of computers. It operates independently of the operating system. It supports many routing-protocols. It enables the internetworking between the organizations. TCP/IP model has a highly scalable client-server architecture. It can be operated independently. Supports several routing protocols. It can be used to establish a connection between two computers. Disadvantages of TCP Here, are disadvantage of using TCP: TCP never conclude a transmission without all data in motion being explicitly asked. You can't use for broadcast or multicast transmission. TCP has no block boundaries, so you