What is TCP/IP?
Transmission Control Protocol/Internet Protocol
Before we jump on to TCP, let’s discuss about Internet Protocol (IP).
Internet Protocol —
It is a unique address that actually identifies a device within the local network or over the internet. This is similar to that of a person’s unique identification number which is very important to have.
IP address allows the devices to communicate with other devices.
Packet — The data that is sent over the computer network are sliced into packets.
How the data is sent over the internet?
Step 1 — The TCP protocol breaks the data into packets
Step 2 — The packets travel from router to router over the internet according to the IP protocol.
Step 3 — The TCP protocol reassembles the packets into the original whole.
The TCP/IP model has four important layers.
- Application Layer — This layer is closest to the end user. It interacts with the software applications and also helps in setting up and managing network connections. It performs encryption and decryption.
- Transport Layer — This layer divides the message into segments and number them to produce a sequence and makes sure the messages are error free.
- Internet Layer — This is used to send packets to and from different devices with the help of various networks.
- Network Access Layer — Layer 4 of TCP/IP Model. This defines how the data must be sent. It facilitates the transmission of data from one device to another.