OSI Layer Protocols – Where Does the Code for the OSI Layer Protocols Exist

osiprotocol-theory

I know this might sound like a very amateur and stupid question but I don't understand the concepts of these protocols in the OSI model. Are they just code that gets invoked? Also where does this code reside? Is it put on every server machine that needs to conform to the protocol when you are designing the network?

I am reading a book and it states that:

For starters, the abstract objects that make up the layers of a network system are called protocols.

Each protocol defines two different interfaces. First, it defines a service interface to the other objects on the same computer that want to use its communication services.

An implementation of the HTTP protocol could support an operation to fetch a page of hypertext from a remote server.

So in the case of an HTTP protocol when a user hits enter after entering a URL on their browser, some code for the HTTP protocol which is stored on some server machine is being run?

Best Answer

I am reading a book and it states

If I were in a snarkier mood, I'd tell you to burn the book. I'm sure you can find other sources that can explain this more clearly.

A better (and simpler) definition in this context is that a protocol is a set of procedures and objects used for communicating between devices. You might think of it as a specialized language for communication. Each layer uses a specific protocol to talk to the corresponding layer on the other device. For example, IP is the protocol used by the network layer on one device to talk to the network layer on another device. Note that this layer to layer communication is logical.

I don't understand the concepts of these protocols in the OSI model. Are they just code that gets invoked?

Forgetting for a moment that no one actually uses the OSI model, yes the protocols are implemented in code. They are a set of communications functions and data objects. This question and answer might help you better understand.

Is it put on every server machine that needs to conform to the protocol when you are designing the network?

In the case of the TCP/IP model, every device that uses IP has the protocol stack. That includes PCs, servers, routers, etc.