I'm not major in science at all and would like to verify whether my understanding is correct or not.
I just did some googling about the definition of protocol, such as in this, this one, this one and more.
And, I would like to know:
is a protocol a pack of algorithms and programming source codes? (in both the computer and network)
regarding the previous question, if so, does that mean that the operating systems/network nodes/applications/hardware indeed have such packs of codes inside their body to perform communications to each other that follow the same protocols? (such as TCP/IP, smb, secure shell, SMTP...)