[Explained] What is TCP IP? How does TCP IP works?

Home » Posts » [Explained] What is TCP IP? How does TCP IP works?

TCP stands for Transmission Control Protocol. Just like humans, Computers also require language to communicate with each other.  TCP/IP is a common language which most of the modern computers share to communicate to each other. TCP/IP is the secure way of transferring the data over a network. It establishes a connection before sending the original data. TCP/IP follows all the layers in OSI Reference Model. You can read more about them by clicking here. TCP’s layers might look different to you if you Google it, but trust me they are the same. In TCP “Session Layer”, “Presentation Layer”, and “Application Layer” are merged into a single layer “Application Layer”. There are many websites that say that TCP has only four layer but according to Oracle.com the TCP has five layer in total.

  • Application Layer
  • Transport Layer
  • Network Layer
  • Data-Link Layer
  • Physical Layer
OSI REF: Layer NumberTCP/IP Layer NameExample
5,6,7ApplicationDNS, RIP, FTP, RSH, SNMP and other
4TransportTCP, UDP
3Network/InternetIP, ARP, ICMP
2Data-Link LayerPPP, IEEE 802.2, Frames
1PhysicalEthernet, Physical Signals
TCP/IP Layers

How does the TCP IP Works?

Since TCP/IP is the secure way of transferring the data. It makes sure that the data it sent has been reached
to its destination without any loss. First it establishes a connection to the host and then it starts to send data.
To establish the connection Three-Way Handshake is used. You can read more about Three-Way Handshake
here. After it successfully establish the connection it then start to send the data. After the complete data is
sent, it then request to finish that connection so that it can free the resources if reserved while establishing
the connection. To finish the connection Four-Way Handshake is used. You can read more about how the
Four-Way Handshake work by clicking here.

\"What
A Local Network

Sneak peek into TCP Handshakes

You can read more in details about TCP Handshakes here.

You can read more about flags here.

3-Way Handshake in TCP IP

To establish the connection between server and client, client uses 3-Way Handshake. The client sends a \”SYN\” flag to the server and wait for the acknowledgement \”SYN-ACK Flag\”, then finally client sends the \”ACK\” flag then the client starts to send the original data.

4-Way Handshake in TCP IP

When the data is transferred successfully, the sender sends a \”FIN\” flag at the end of the data and if everything went smooth then the receiver sends acknowledgement and sends back \”FIN\” flag to the sender. After receiving the \”FIN\” flag back from the receiver, the sender device send acknowledgment to successfully finish the connection from both sides.


If you find any mistakes in this article please let me know either by commenting down below or filling a small \”Contact Us\” form here.

All the Pictures used in this article are from Pexels.com

9 thoughts on “[Explained] What is TCP IP? How does TCP IP works?

    1. Thank you so much for commenting on this post. I am really glad that you like my content. Thank you for visiting our site thank you so much

  1. Please let me know if you’re looking for a author for
    your site. You have some really great posts
    and I think I would be a good asset. If you ever want
    to take some of the load off, I’d love to write some content for
    your blog in exchange for a link back to mine. Please shoot me an email if interested.
    Many thanks!

  2. I was suggested this blog through my cousin. I
    am no longer positive whether this publish is written by means
    of him as nobody else understand such special about my difficulty.
    You’re amazing! Thanks!

  3. I’ve read some just right stuff here. Definitely value bookmarking for revisiting.
    I wonder how much effort you place to create this type
    of great informative web site.

Leave a Reply

Your email address will not be published. Required fields are marked *