Protocols: How Computers Know What a Message Means
Your browser asks a website for a page. Suppose the page is no longer there: the server sends a response explaining that it cannot supply it. The request failed, but the computers still managed to understand each other.
A protocol is a set of shared rules for communication. It can define how a message is arranged, what its parts mean and what a receiving program should do next. Those rules let programs written by different people take part in the same exchange.
The message has an agreed meaning
For the web exchange, the relevant protocol is HTTP, short for Hypertext Transfer Protocol. The browser acts as a client, the program making a request. The website's server receives the request and sends a response. These words describe their roles in the conversation.
An HTTP request identifies an action and its target. A request to retrieve a page, for example, tells the server which resource the browser wants. The response carries the result and may include the requested content.
- Keep work, guest and smart-home gear apart with up to 32 VLANs on one small switch.
- Copy any port's traffic to your laptop with port mirroring and see what is on the wire.
- Set it up from a web page instead of learning a command line.
The HTTP standard defines these shared meanings. The browser doesn't have to guess whether the returned information is a page, a failure or some other result.
Other protocols organize exchanges differently. HTTP is a familiar example of how shared communication rules work.
One exchange can use several protocols
Understanding a request is one job. Carrying its data across a network is another. Protecting it against someone listening along the way is another still.
For a protected web connection that uses TCP, or Transmission Control Protocol, the jobs fit together like this:
| Protocol | Its job in this example |
|---|---|
| HTTP | Gives the web request and response their meaning. |
| TLS, Transport Layer Security | Protects the communication against eavesdropping and tampering. |
| TCP | Delivers data as a reliable, ordered stream of bytes. |
| IP, Internet Protocol | Carries addressed packets across networks. |
A byte is a small unit of digital data. A packet is a unit of data sent across a network. TCP can detect loss and send missing data again so the receiving program gets an ordered stream, as described in the TCP specification.
That delivery work doesn't require TCP to understand the page's message. Likewise, HTTP doesn't have to perform every job involved in getting data from one computer to another. Protocols can cooperate while solving different problems. This TCP-based example is one arrangement; web communication can use other transports.
The Seven Layers Behind Every Network Message
Agreed rules aren't automatically security rules
Two programs can follow a message format perfectly while sending information over an unprotected connection. Sharing rules for communication doesn't, by itself, make that communication private.
For HTTPS, the protected form of HTTP communication, Transport Layer Security adds the security work. It establishes protection for the connection, authenticates the server and helps prevent outsiders from reading or changing the exchanged data.
Encryption makes data unreadable without the appropriate secret information. A protected connection doesn't make the website's software free of faults.
The missing page is still missing, even over a secure connection. But the protocols let the browser send a request, receive a clear failure response and protect that exchange along the way.
Internet Standards: What the Label Actually Tells You

Interoperability: When Two Systems Understand the Same Data

Protocol Stacks and OSI: How Network Jobs Fit Together

QUOTE:
"Amateurs hack systems, professionals hack people."
