Protocol
In computing, a protocol is a set of rules and standards that define how data is transmitted and received over a network. There are protocols that are used to allow computers and other devices to communicate with one another and share information among themselves.
A protocol defines how data is structured , how it’s transmitted, and how it’s received .
Some common examples:-
- Transmission Control Protocol/Internet Protocol (TCP/IP): This is a set of protocols that are used to connect devices to the internet and transmit data between them.
- Hypertext Transfer Protocol (HTTP): This is a protocol used to transfer data over the World Wide Web, such as when accessing web pages or downloading files.
- File Transfer Protocol (FTP): This is a protocol used to transfer files between computers over a network.
- Simple Mail Transfer Protocol (SMTP): This is a protocol used to send email messages between servers.
- Domain Name System (DNS): This is a protocol used to translate domain names into IP addresses, allowing computers to locate servers and other devices on the internet.
How Protocol Works
Get Gowshisanthiran’s stories in your inbox
Join Medium for free to get updates from this writer.
When two devices communicate with each other, they must use the same protocol in order to understand each other’s messages and exchange data.
A protocol typically includes several different components that work together to facilitate communication between devices. These components may include:-
- Data format: This defines the format and structure of the data being transmitted, such as the order of bytes and how the data is encoded.
- Transmission methods: This includes details such as how data is packaged for transmission, how it is sent over the network, and how errors are detected and corrected.
- Routing: This defines how data is sent from one device to another over a network, including details such as how packets are addressed and how they are forwarded.
- Authentication and security: This includes mechanisms for verifying the identity of devices and ensuring that data is transmitted securely.
When two devices communicate with each other, they must agree on a common protocol to use. This typically involves establishing a connection between the devices, during which they negotiate the protocol to use, exchange information about their capabilities, and establish parameters for the communication.
Protocols are essential for ensuring that devices can communicate with each other over a network. Without protocols, devices would not be able to understand each other’s messages, making it impossible to share information or access resources on a network.






