How are network protocols implemented?

I know that a protocol is a set of rules that governs communication between two computers on a network, but how are thoses rules implemented for the computer? Is a protocol basically a piece of code or, in other words, software?

1,081 14 14 silver badges 18 18 bronze badges asked Dec 21, 2009 at 20:06 Robert Tracy Robert Tracy 75 1 1 gold badge 1 1 silver badge 2 2 bronze badges

8 Answers 8

Protocols are generally built upon each other. At the risk of sounding pedantic, here's an example of a protocol and where/how it's implemented:

In a sense, these are all "protocols" (a set of rules or expected behaviors that allow communication to take place), and they're built on one another.

Bear in mind that (aside from electricity) this is not an exhaustive list of the sort of protocols that exist at any of these layers!

Edit Thanks to dmckee for pointing out that electricity isn't the only physical process used in networking ;)