PROTOCOLS
PROTOCOLS
A network protocol is an established set of rules that determine how data is transmitted
between different devices in the same network. Essentially, it allows connected devices to
communicate with each other, regardless of any differences in their internal processes,
structure or design. Network protocols are the reason you can easily communicate with people
all over the world, and thus play a critical role in modern digital communications.
Similar to the way that speaking the same language simplifies communication between two
people, network protocols make it possible for devices to interact with each other because of
predetermined rules built into devices’ software and hardware. Neither local area networks
(LAN) nor wide area networks (WAN) could function the way they do today without the use of
network protocols.
Network protocols take large-scale processes and break them down into small, specific tasks or
functions. This occurs at every level of the network, and each function must cooperate at each
level to complete the larger task at hand. The term protocol suite refers to a set of smaller
network protocols working in conjunction with each other.
Network protocols are typically created according to industry standard by various networking
or information technology organizations.
The following groups have defined and published different network protocols:
While network protocol models generally work in similar ways, each protocol is unique and
operates in the specific way detailed by the organization that created it.
There are thousands of different network protocols, but they all perform one of three primary
actions:
Communication
Network management
Security
Each type is necessary to use network devices swiftly and safely, and they work together to
facilitate that usage.
Communication
Communication protocols allow different network devices to communicate with each other.
They are used in both analog and digital communications and can be used for important
processes, ranging from transferring files between devices to accessing the internet.
Network Management
Network management protocols define and describe the various procedures needed to
effectively operate a computer network. These protocols affect various devices on a single
network — including computers, routers and servers — to ensure each one, and the network as
a whole, perform optimally.
The functions of network management protocols include the following:
Security
Security protocols, also called cryptographic protocols, work to ensure that the network and
the data sent over it are protected from unauthorized users.
Encryption: Encryption protocols protect data and secure areas by requiring users to
input a secret key or password in order to access that information.
Entity Authentication: Entity authentication protocols create a system that requires
different devices or users on a network to verify their identity before accessing secure
areas.
Transportation: Transportation security protocols protect data while it is transported
from one network device to another.
Whether you know it or not, you’ve absolutely encountered network protocols when using
electronic devices – and some of them are readily identifiable.
Here are a few examples of the most commonly used network protocols:
Hypertext Transfer Protocol (HTTP): This Internet Protocol defines how data is
transmitted over the internet and determines how web servers and browsers should
respond to commands. This protocol (or its secure counterpart, HTTPS) appears at the
beginning of various URLs or web addresses online.
Secure Socket Shell (SSH): This protocol provides secure access to a computer, even if
it’s on an unsecured network. SSH is particularly useful for network administrators who
need to manage different systems remotely.
Short Message Service (SMS): This communications protocol was created to send and
receive text messages over cellular networks. SMS refers exclusively to text-based
messages. Pictures, videos or other media require Multimedia Messaging Service
(MMS), an extension of the SMS protocol.
There are various types of protocols that support a major and compassionate role in
communicating with different devices across the network. These are:
Some other popular protocols act as co-functioning protocols associated with these primary
protocols for core functioning. These are:
To understand the nuances of network protocols , it's imperative to know about the Open
Systems Interconnection (OSI) model first. Considered the primary architectural model for
internet working communications, the majority of network protocols used today are
structurally based on the OSI model.
The OSI model splits the communication process between two network devices into 7 layers. A
task or group of tasks is assigned to each of these 7 layers. All the layers are self-contained, and
the tasks assigned to them can be executed independently.
To put this into context, here is a representation of the communication process between two
network devices following the OSI model:
The seven layers in the OSI model can be divided into two groups: upper layers, including layers
7, 6, and 5, and lower layers, including layers 4, 3, 2, and 1. The upper layers deal with
application issues, and the lower layers deal with data transport issues.
Network protocols divide the communication process into discrete tasks across every layer of
the OSI model. One or more network protocols operate at each layer in the communication
exchange.
Following are the detailed descriptions of the functioning of network protocols in each layer of
the OSI model:
Layer 7: Application layer Provides standard services such as virtual terminal, file,
network protocols and job transfer and operations.
Layer 6: Presentation layer Masks the differences in data formats between dissimilar
network protocols systems.
Encodes and decodes data, encrypts and decrypts data,
and compresses and decompresses data.
Though some say the OSI model is now redundant and less significant than the Transmission
Control Protocol (TCP)/IP network model, there are still references to the OSI model even today
as the model's structure helps to frame discussions of protocols and contrast various
technologies.
Now that you know how the OSI model works, you can dive straight into the classification of
protocols. The following are some of the most prominent protocols used in network
communication.
Application layer network protocols
Tracking internet activity becomes tedious, as the same device can have multiple IP
addresses over a period of time.
Computers with DHCP cannot be used as servers, as their IPs change over time.
The DNS protocol helps in translating or mapping host names to IP addresses. DNS works on a
client-server model, and uses a distributed database over a hierarchy of name servers.
Hosts are identified based on their IP addresses, but memorizing an IP address is difficult due to
its complexity. IPs are also dynamic, making it all the more necessary to map domain names to
IP addresses. DNS helps resolve this issue by converting the domain names of websites into
numerical IP addresses.
Advantages
Disadvantages
DNS queries don't carry information pertaining to the client who initiated it. This is
because the DNS server only sees the IP from where the query came from, making the
server susceptible to manipulation from hackers.
DNS root servers, if compromised, could enable hackers to redirect to other pages for
phishing data.
3. FTP: File Transfer Protocol
File Transfer Protocol enables file sharing between hosts, both local and remote, and runs on
top of TCP. For file transfer, FTP creates two TCP connections: control and data connection. The
control connection is used to transfer control information like passwords, commands to
retrieve and store files, etc., and the data connection is used to transfer the actual file. Both of
these connections run in parallel during the entire file transfer process.
Advantages
Enables sharing large files and multiple directories at the same time.
Lets you resume file sharing if it was interrupted.
Lets you recover lost data, and schedule a file transfer.
Disadvantages
FTP lacks security. Data, usernames, and passwords are transferred in plain text, making
them vulnerable to malicious actors.
FTP lacks encryption capabilities, making it non-compliant with industry standards.
HTTP is an application layer protocol used for distributed, collaborative, and hypermedia
information systems. It works on a client-server model, where the web browser acts as the
client. Data such as text, images, and other multimedia files are shared over the World Wide
Web using HTTP. As a request and response type protocol, the client sends a request to the
server, which is then processed by the server before sending a response back to the client.
HTTP is a stateless protocol, meaning the client and server are only aware of each other while
the connection between them is intact. After that, both the client and server forget about each
other's existence. Due to this phenomenon, the client and server can't both retain information
between requests.
Advantages
Memory usage and CPU usage are low because of lesser concurrent connections.
Errors can be reported without closing connections.
Owing to lesser TCP connections, network congestion is reduced.
Disadvantages
IMAP is an email protocol that lets end users access and manipulate messages stored on a mail
server from their email client as if they were present locally on their remote device. IMAP
follows a client-server model, and lets multiple clients access messages on a common mail
server concurrently. IMAP includes operations for creating, deleting, and renaming mailboxes;
checking for new messages; permanently removing messages; setting and removing flags; and
much more. The current version of IMAP is version 4 revision 1.
Advantages
As the emails are stored on the mail server, local storage utilization is minimal.
In case of accidental deletion of emails or data, it is always possible to retrieve them as
they are stored on the mail server.
Disadvantages
The Post Office Protocol is also an email protocol. Using this protocol, the end user can
download emails from the mail server to their own email client. Once the emails are
downloaded locally, they can be read without an internet connection. Also, once the emails are
moved locally, they get deleted from the mail server, freeing up space. POP3 is not designed to
perform extensive manipulations with the messages on the mail server, unlike IMAP4. POP3 is
the latest version of the Post Office Protocol.
Advantages
Disadvantages
If the local device on which the emails were downloaded crashes or gets stolen, the
emails are lost.
7. SMTP: Simple Mail Transfer Protocol
SMTP is a protocol designed to transfer electronic mail reliably and efficiently. SMTP is a push
protocol and is used to send the email, whereas POP and IMAP are used to retrieve emails on
the end user's side. SMTP transfers emails between systems, and notifies on incoming emails.
Using SMTP, a client can transfer an email to another client on the same network or another
network through a relay or gateway access available to both networks.
Advantages
Ease of installation.
Connects to any system without any restriction.
It doesn't need any development from your side.
Disadvantages
Back and forth conversations between servers can delay sending a message, and also
increases the chance of the message not being delivered.
Certain firewalls can block the ports used with SMTP.
Telnet is an application layer protocol that enables a user to communicate with a remote
device. A Telnet client is installed on the user's machine, which accesses the command line
interface of another remote machine that runs a Telnet server program.
Telnet is mostly used by network administrators to access and manage remote devices. To
access a remote device, a network admin needs to enter the IP or host name of the remote
device, after which they will be presented with a virtual terminal that can interact with the
host.
Advantages
Disadvantages
Telnet lacks encryption capabilities and sends across critical information in clear text,
making it easier for malicious actors.
Expensive due to slow typing speeds.
9. SNMP: Simple Network Management Protocol
SNMP is an application layer protocol used to manage nodes, like servers, workstations,
routers, switches, etc., on an IP network. SNMP enables network admins to monitor network
performance, identify network glitches, and troubleshoot them. SNMP protocol is comprised of
three components: a managed device, an SNMP agent, and an SNMP manager.
The SNMP agent resides on the managed device. The agent is a software module that has local
knowledge of management information, and translates that information into a form compatible
with the SNMP manager. The SNMP manager presents the data obtained from the SNMP agent,
helping network admins manage nodes effectively.
Currently, there are three versions of SNMP: SNMP v1, SNMP v2, and SNMP v3. Both versions 1
and 2 have many features in common, but SNMP v2 offers enhancements such as additional
protocol operations. SNMP version 3 (SNMP v3) adds security and remote configuration
capabilities to the previous versions.
The Lightweight Presentation Protocol helps provide streamlined support for OSI application
services in networks running on TCP/IP protocols for some constrained environments. LPP is
designed for a particular class of OSI applications, namely those entities whose application
context contains only an Association Control Service Element (ACSE) and a Remote Operations
Service Element (ROSE). LPP is not applicable to entities whose application context is more
extensive, i.e., contains a Reliable Transfer Service Element.
RPC is a protocol for requesting a service from a program in a remote computer through a
network, and can be used without having to understand the underlying network technologies.
RPC uses TCP or UDP for carrying the messages between communicating programs. RPC also
works on client-server model. The requesting program is the client, and the service providing
program is the server.
Advantages
Disadvantages
Not yet proven to work effectively over wide-area networks.
Apart from TCP/IP, RPC does not support other transport protocols.
TCP is a transport layer protocol that provides a reliable stream delivery and virtual connection
service to applications through the use of sequenced acknowledgement. TCP is a connection-
oriented protocol, as it requires a connection to be established between applications before
data transfer. Through flow control and acknowledgement of data, TCP provides extensive
error checking. TCP ensures sequencing of data, meaning the data packets arrive in order at the
receiving end. Retransmission of lost data packets is also feasible with TCP.
Advantages
TCP ensures three things: data reaches the destination, reaches it on time, and reaches
it without duplication.
TCP automatically breaks data into packets before transmission.
Disadvantages
UDP is a connection-less transport layer protocol that provides a simple but unreliable message
service. Unlike TCP, UDP adds no reliability, flow control, or error recovery functions. UDP is
useful in situations where the reliability mechanisms of TCP are not necessary. Retransmission
of lost data packets isn't possible with UDP.
Advantages
Disadvantages
In UDP, it's possible that a packet may not be delivered, be delivered twice, or not be
delivered at all.
Manual disintegration of data packets is needed.
IPv4 is a network layer protocol that contains addressing and control information, which helps
packets be routed in a network. IP works in tandem with TCP to deliver data packets across the
network. Under IP, each host is assigned a 32-bit address comprised of two major parts: the
network number and host number. The network number identifies a network and is assigned by
the internet, while the host number identifies a host on the network and is assigned by a
network admin. The IP is only responsible for delivering the packets, and TCP helps puts them
back in the right order.
Advantages
Disadvantages
IPv6 is the latest version of the Internet Protocol, a network layer protocol that possesses
addressing and control information for enabling packets to be routed in the network. IPv6 was
created to deal with IPv4 exhaustion. It increases the IP address size from 32 bits to 128 bits to
support more levels of addressing.
Advantages
Disadvantages
ICMP is a network layer supporting protocol used by network devices to send error messages
and operational information. ICMP messages delivered in IP packets are used for out-of-band
messages related to network operation or misoperation. ICMP is used to announce network
errors, congestion, and timeouts, as well assist in troubleshooting.
Advantages
ICMP is used to diagnose network issues.
Disadvantages
The Address Resolution Protocol helps map IP addresses to physical machine addresses (or a
MAC address for Ethernet) recognized in the local network. A table called an ARP cache is used
to maintain a correlation between each IP address and its corresponding MAC address. ARP
offers the rules to make these correlations, and helps convert addresses in both directions.
Advantages
MAC addresses need not be known or memorized, as the ARP cache contains all the
MAC addresses and maps them automatically with IPs.
Disadvantages
SLIP is used for point-to-point serial connections using TCP/IP. SLIP is used on dedicated serial
links, and sometimes for dial-up purposes. SLIP is useful for allowing mixes of hosts and routers
to communicate with one another; for example, host-host, host-router, and router-router are
all common SLIP network configurations. SLIP is merely a packet framing protocol: It defines a
sequence of characters that frame IP packets on a serial line. It does not provide addressing,
packet type identification, error detection or correction, or compression mechanisms.
Advantages
DIsadvantages
SLIP doesn't support automatic setup of network connections in multiple OSI layers at
the same time.
SLIP does not support synchronous connections, such as a connection created through
the internet from a modem to an internet service provider (ISP).
Figure 1 illustrates how some of the major protocols would correlate to the OSI model in order
to communicate via the Internet. In this model, there are four layers, including:
Assuming you want to send an e-mail message to someone in Italy, we will examine the layers
"from the bottom up" -- beginning with Ethernet (physical/data link layers).
The physical layer of the network focuses on hardware elements, such as cables, repeaters, and
network interface cards. By far the most common protocol used at the physical layer is
Ethernet. For example, an Ethernet network (such as 10BaseT or 100BaseTX) specifies the type
of cables that can be used, the optimal topology (star vs. bus, etc.), the maximum length of
cables, etc. (See the Cabling section for more information on Ethernet standards related to the
physical layer).
The data link layer of the network addresses the way that data packets are sent from one node
to another. Ethernet uses an access method called CSMA/CD (Carrier Sense Multiple
Access/Collision Detection). This is a system where each computer listens to the cable before
sending anything through the network. If the network is clear, the computer will transmit. If
some other node is already transmitting on the cable, the computer will wait and try again
when the line is clear. Sometimes, two computers attempt to transmit at the same instant.
When this happens a collision occurs. Each computer then backs off and waits a random
amount of time before attempting to retransmit. With this access method, it is normal to have
collisions. However, the delay caused by collisions and retransmitting is very small and does not
normally effect the speed of transmission on the network.
Ethernet
The original Ethernet standard was developed in 1983 and had a maximum speed of 10 Mbps
(phenomenal at the time) over coaxial cable. The Ethernet protocol allows for bus, star, or tree
topologies, depending on the type of cables used and other factors. This heavy coaxial cabling
was expensive to purchase, install, and maintain, and very difficult to retrofit into existing
facilities.
The current standards are now built around the use of twisted pair wire. Common twisted pair
standards are 10BaseT, 100BaseT, and 1000BaseT. The number (10, 100, 1000) ands for the
speed of transmission (10/100/1000 megabits per second); the "Base" stands for "baseband"
meaning it has full control of the wire on a single frequency; and the "T" stands for "twisted
pair" cable. Fiber cable can also be used at this level in 10BaseFL.
Fast Ethernet
The Fast Ethernet protocol supports transmission up to 100 Mbps. Fast Ethernet requires the
use of different, more expensive network concentrators/hubs and network interface cards. In
addition, category 5 twisted pair or fiber optic cable is necessary. Fast Ethernet standards
include:
Gigabit Ethernet
Gigabit Ethernet standard is a protocol that has a transmission speed of 1 Gbps (1000 Mbps). It
can be used with both fiber optic cabling and copper. (see the Cabling section for more
information).
The Ethernet standards continue to evolve. with 10 Gigabit Ethernet (10,000 Mbps) and 100
Gigabit Ethernet (100,000 Mbps),
Ethernet Protocol Summary
Protocol Cable Speed
Ethernet Twisted Pair, Coaxial, Fiber 10 Mbps
Fast Ethernet Twisted Pair, Fiber 100 Mbps
Gigabit Ethernet Twisted Pair, Fiber 1000 Mbps
Several very popular network protocols, commonly used in the 90's and early 21st century have
now largely fallen into disuse. While you may hear terms from time to time, such as "Localtalk"
(Apple) or "Token Ring" (IBM), you will rarely find these systems still in operation. Although
they played an important role in the evolution of networking, their performance and capacity
limitations have relegated them to the past, in the wake of the standardization of Ethernet
driven by the success of the Internet.
The network layer is in charge of routing network messages (data) from one computer to
another. The common protocols at this layer are IP (which is paired with TCP at the transport
layer for Internet network) and IPX (which is paired with SPX at the transport layer for some
older Macintosh, Linus, UNIX, Novell and Windows networks). Because of the growth in
Internet-based networks, IP/TCP are becoming the leading protocols for most networks.
Every network device (such as network interface cards and printers) have a physical address
called a MAC (Media Access Control) address. When you purchase a network card, the MAC
address is fixed and cannot be changed. Networks using the IP and IPX protocols assign logical
addresses (which are made up of the MAC address and the network address) to the devices on
the network, This can all become quite complex -- suffice it to say that the network layer takes
care of assigning the correct addresses (via IP or IPX) and then uses routers to send the data
packets to other networks.
The transport layer is concerned with efficient and reliable transportation of the data packets
from one network to another. In most cases, a document, e-mail message or other piece of
information is not sent as one unit. Instead, it is broken into small data packets, each with
header information that identifies its correct sequence and document.
When the data packets are sent over a network, they may or may not take the same route -- it
doesn't matter. At the receiving end, the data packets are re-assembled into the proper order.
After all packets are received, a message goes back to the originating network. If a packet does
not arrive, a message to "re-send" is sent back to the originating network.
TCP, paired with IP, is by far the most popular protocol at the transport level. If the IPX protocol
is used at the network layer (on networks such as Novell or Microsoft), then it is paired with
SPX at the transport layer.
Several protocols overlap the session, presentation, and application layers of networks. There
protocols listed below are a few of the more well-known:
DNS - Domain Name System - translates network address (such as IP addresses) into
terms understood by humans (such as Domain Names) and vice-versa
DHCP - Dynamic Host Configuration Protocol - can automatically assign Internet
addresses to computers and users
FTP - File Transfer Protocol - a protocol that is used to transfer and manipulate files on
the Internet
HTTP - HyperText Transfer Protocol - An Internet-based protocol for sending and
receiving webpages
IMAP - Internet Message Access Protocol - A protocol for e-mail messages on the
Internet
IRC - Internet Relay Chat - a protocol used for Internet chat and other communications
POP3 - Post Office protocol Version 3 - a protocol used by e-mail clients to retrieve
messages from remote servers
SMTP - Simple Mail Transfer Protocol - A protocol for e-mail messages on the Internet
PREPARED BY: