views:

138

answers:

5

I heard this term many times when I came across some protocol implementations, but could not imagine how 'protocol' relates to 'stack'? Is the stack used here literally a Stack data structure? If so why do we require stacks of protocols at client and server for communication.

A: 

http://en.wikipedia.org/wiki/Protocol%5Fstack

FractalizeR
A short summary would be useful you then can link to wikipedia for a more detailed view
Janusz
I am not sure, a summary is needed. WikiPedia is a summary itself. A very good summary I might say.
FractalizeR
A: 

"Protocol stack" refers to the specific implementation used. So for example the tcp framework is usually referred to as the "tcp stack". Here stack is used as a term indicating the various "pieces" of the framework.

ennuikiller
+4  A: 

In this sense, "stack" is unrelated to the stack data structure - it merely refers to how each protocol is built upon those below it.

Paul Baker
+9  A: 

TCP is built on IP.

IP is built on Ethernet.

Ethernet is built on voltage levels and timings.

So a TCP Stack is the stack of stuff you need to use TCP.

Robert
And above TCP, you might have HTTP, which might be sending XML RPC or whatever ... the turtles go up and up.
jleedev
OSI - the classic 7 layer cake.
whatnick
The Office of Secret Intelligence has more layers than that, soldier!
Will
Sometimes they talk about 2.5 layer(beteween IP-link) - ARP, anyway +1 for "picture" explanation.
bua
+3  A: 

Its a reference to the layering approach to networking. Remember the OSI Reference Model? TCP/IP Model? Basically you break down the network into layers and each layer tackles the problem of networking at a different level of abstraction from the hardware to the application.

Each layer has its own set of protocols and each higher layer uses the lower layer to carry out its job. Like how TCP (transport Layer) uses IP (Network Layer) to send its Frames. When you take all the protocols used in a network to move bits, you "stack" them one on top of the other. The application only sees the protocol at the top of the stack.

Vincent Ramdhanie