I want to know how a network packet travels through different layers, i.e. from the physical layer to the presentation layer in Linux systems.
Are there any detailed articles or books on this topic with code?
|
I want to know how a network packet travels through different layers, i.e. from the physical layer to the presentation layer in Linux systems. Are there any detailed articles or books on this topic with code? |
||||
|
|
The OSI layer model isn't how networking is actually programmed. You might check this book if you're interested in C code samples: |
|||
|
not cheap, but one of the definite classics. Richad Stevens: "TCP/IP Illustrated Vol.1 The Protocols". Very thorough, covers of course also UDP, ICMP, etc. pp. If your're into programming, there's also "TCP/IP Illustrated Vol. 2 The Implementation" by Gary Wright. |
|||
|
|
Conceptually the OSI model looks like this
Each send layer appears to communicate transparently to the corresponding receive layer. In routed networks (middle column) the same is true. As a packet descends from 7 to 1 each layer attaches header information that the layer below sees as a Protocol Data Unit. As the packet ascends the the model each layer removes the header. |
|||
|
|