Tuesday, June 23, 2020

Most commonly used protocols in networking

In this blog we would learn about some of the most commonly used protocols in networking field.

  • IP
  1.  IPv4
  2.  IPv6
  • DHCP
  • DNS
  • SMTP
  • HTTP
  • HTTPS
  • FTP

IP(Internet Protocol): IP is one of the most common protocol used in networking,for a device to communicate with other device IP is needed.
Internet Protocol is further divided in two types IPv4 and IPv6
 
IPv4: IPv4 is of 32 bits and basically of 4 octets.Each octet means 8 bits,so each octet  can vary from 0-255.total number of IPv4 address we have is 2^32 which is 429,49,67,296.
IPv4 is further divided in 5 types Class A,B.C,D,E.

IPv6: IPv6 is introduced because we are running out of IPv4,we tried saving IPv4 using NAT technique but still internet users are increasing exponential every year. 

DHCP: Dynamic Host Configuration Host protocol

Overview of Dynamic Host Configuration Protocol (DHCP) for Beginners

Imagine you are a network administrator and you have 100's of computer/systems at your office and you have to statically allocate the IP address to all the systems it would be more time consuming .so for this there's a solution which is DHCP. DHCP Dynamically allocates the IP address to all the users who connect to the network.
DHCP follows DORA procedure for allocating the IP address which is Discover,Offer,Request,Acknowledge 

Port number of DHCP is 67

What is process of DORA in DHCP? - Quora


DNS: Domain Name System/Server: DNS is a service offered by DNS server to resolve the IP address of a domain name.It is not possible to remember the the IP addresses of all the servers on the internet ,for which there's a solution called DNS.We humans can easily remember the domain names rather than  the IP address for each server.Port number of DNS is 53

Pic Source: Internet society 

SMTP: SIMPLE MAIL TRANSFER PROTOCOL: SMTP is a communication protocol for electronic mail transmission.Port number for SMTP is 25

Bulk mailing smtp server setup by Bdweb07


Pic Source: Google Images

HTTP: HyperText Transfer protocol
It's used for communication between client and server.Port number for HTTP is 80

HTTPS: HyperText Transfer protocol Secured
It's an extension of HTTP,It is used for secure communication over computer networks.


Difference between HTTPS vs HTTP port number, Speed - YouTube


Pic Source:Google Images



FTP:FILE TRANSFER PROTOCOL
The File Transfer Protocol is a standard network protocol used for the transfer of computer files between a client and server on a computer network. Port number for FTP is 21.


Thanks for reading,see you in next article!

Saturday, June 6, 2020

TCP/IP Model


Although the OSI model tells us clearly that how the internet/Network works it is barely implemented for several reasons. TCP/IP model was implemented and can be referred to as the condensed and implementable version of the theoretical OSI model.
It consists of four layers,
  •  Application or Process Layer
  • Transport or Host to Host layer
  • Internet Layer
  • Link Layer or Network Access Layer
TCP/IP model vs OSI model |

OSI Model

OSI (Open System Interconnection) model was introduced by ISO(International Standard Organization) in 1984.
The Main reason behind this  was by that time their were two IT firm Apple and IBM and they were not able to communicate with each other. They could communicate within their company but outside the company was not allowed for both the IT firm.

The Open Systems Interconnection model (OSI model) is a conceptual model using which one can say the flow or working of the network.

It would be difficult for anyone to explain the set of actions on how the internet works without the help of OSI model.

OSI Model has 7 Layers 

Basic Networking: Open Systems Interconnection (OSI) Network Model
Layer 1 Physical and Layer 7 Application.


Layer 7 to 1 (Application to physical ) is called encapsulation and layer 1 to 7 (Physical to Application) is called de-capsulation.

Encapsulation is adding (Appending) the content in each layer. De-capuslation  is just reverse of encapsulation.

Shortcut to remember the seven layers of OSI model is Please Do Not Take Sales Person Advice 

Application layer: This layer is where user interaction takes place.This layer lies between the actual application that provides network access and the lower layer.

Presentation layer:This layer takes care of how the data should be represented.for example text and images are two major format  that we see in any websites. Content of these two formats are basically a sequence of 0's and 1's .This layer takes care on how the data should be represented with which format.

Session Layer : As the name suggests ,we can guess this layer is responsible for all session activities between client and the server for example if the bank websites are left idle for 180 seconds the session for that particular transaction is terminated.

Transport Layer: The data from source to the destination are not sent at once as whole. The data is divided into small chunks of data and they are numbered in transport layer at the sender's end.At the receiver's end these small chunk's of the data are arranged and converted back into single data.These numbered chunks of data at transport layer  are called as segment.Transport layer also takes care of error detection process.
Transport layer works on two main protocol   

  • TCP(Transmission Control Protocol)
  • UDP(User Datagram Protocol)
Protocols are nothing but a set of rules to be followed by client and server in order to make the communication safe,reliable and secure.


TRANSMISSION CONTROL PROTOCOL (TCP):

Transmission Control Protocol (TCP) is a reliable service. i.e., each information sent and received between the end devices will be acknowledged, so that if any particular information is dropped in between them, acknowledgement will fail and as a result that particular information will be re-transmitted automatically making sure that the information is delivered to the destination. This is the core logic behind the TCP protocol. This feature makes the TCP protocol unique and most of the applications in today’s world uses TCP, Also TCP is connection oriented protocol i.e before the data transmission begins connection establishment must take place and this process is also referred as the Three-way handshake.
The Three-way handshake ensures that there is proper connectivity between the hosts after which the connection is said to be established. The TCP does windowing and flow control as well.

Applications like Web Browsers, Chat clients, Email clients are the few examples that work on TCP.

USER DATAGRAM PROTOCOL (UDP):

On the other hand, User Datagram Protocol (UDP) is an unreliable service i.e. the end devices won’t care about the delivery status. UDP is a connection less protocol which doesn’t establish any connection before transmitting the data. This protocol is widely used in the field of real time activities. Real time activities in the sense, actions like live video streaming, voice & video calling etc. For a real time example recall the Skype 
UDP is also used for bootstrapping and DNS requests.
 Skype, Viber, Live telecast are the few examples of UDP.

Network Layer: IP addresses and routing are taken care by this layer. This layer has two fields. Source IP address and the Destination IP address. A segment along with the source IP and destination IP is called the packet. Packet is the layer 3 data unit. Whenever you visit a web-page two things will happen, a request and a reply. You will request the server for its web-page and the server will send you its web page as a reply.
Let us say, you visit www.google.com. In the request you send, the source IP address will be the IP address of your computer and the destination IP address will be the Google server IP address. During the reply from the server the source IP address will be the IP address of the Google server and the destination IP address will be the IP address of your computer. 
Routers and L3 switches are Layer 3 devices.

DataLink Layer: Like Network layer takes care of IP addresses, Datalink layer takes care of MAC addresses and error detection. MAC stands for Media Access Control. MAC address is a 12 digit hexadecimal address that uniquely identifies every device on the earth.
This layer has two fields. Source MAC address and the Destination MAC address. 
Switches are layer 2 devices.

Physical layer:
This layer transfers the data in Bits. This layer takes care of the physical connections like Ethernet cables.Cables and NIC’s are Layer 1 devices.


Thanks for reading,See you in next article!




Address Resolution Protocol (ARP)

Address Resolution Protocol(ARP): The address resolution protocol (arp) is a protocol used by the Internet Protocol (IP), specifically IPv4,...