TCP/IP

The Transmission Control Protocol (TCP) and the Internet Protocol (IP) were the first networking protocols defined in the Internet Model by DARPA. It is often used to talk about the whole model, even though they only represents 2 layers of it, the transport layer (TCP) and the network layer (IP). TCP is connection-oriented, while IP is connection-less. While IP handles actual delivery of the data, TCP keeps track of the individual units of data transmission. This suite of protocols was officially adopted in January of 1983 replacing ARPANET's IMP subnet.1



Transmission Control Protocol

TCP was invented in 1973 by Vint Cerf and Robert Kahn. Introduced in 1974, it allowed resource sharing between networks other than the ARPANET. Representing OSI layer 4, it allows for ordered and error-checked between programs running on computers connected to a local area network, Intranet or the public Internet. TCP is part of the structure of layers that make a network packet, namely the transfer layer. It allows for multiple applications to use a single network connection simultaneously, each of which is assigned to a different port. The goal of a port is to uniquely identify different applications or processes running on a single computer. The data is divided in small packets, by a process called Packet Switching, so that if one packet is corrupted on the way, the whole data doesn't have to be resent.

Internet Protocol

Functions

It separated some of the networking functionality from the simple act of passing packets. IP is OSI layer 3, it controls routing of information to different devices. It deals with IP addresses, subnet masks, default gateways, DNS and more to figure out where the other one is and start communicating. It is a routable protocol which allows to divide big networks into smaller subnetworks with the use of routers.

IP address structure

IP Address

IP addresses are used to distinguish every computer or device on a network. It comparable to a phone number, the "caller" is the computer that initiates the connection using the IP of the server it wants to reach and the server is "listening" for calls to come in. An IP an address is made of 32 bits which limits the address space to 4294967296 (232) possible unique addresses, but there is sub-netting of those addresses for subnetworks, allowing more uses of those IP addresses.2

Subnetwork

A subnet mask segments a network logically, so that computers and devices on the same network cannot necessarily communicate with each other. Then we have a Default Gateway, which is the router for the subnetwork that the computer is on. So if for instance you are looking for a website, the computer will look of it first in the subnetwork and only when hasn’t found it there, he will use the default gateway to ask the router to find the site on the internet. If you enter the name of the site to find it, it goes through the Domain Name Server (DNS), to find the IP Address of the site.