tcp/ip problem

how the data from disk is loaded into memory and then it transfered to tcp/ip packet.
how i can find how many pages are loaded into memory by that process
what is the rate of context switch for that process.

Could you explain more what you would like to understand ?

Look at the OSI Model.

I don't think the OSI model answers the question. The question is not about networking, the poster asked:

This is not covered, in a way that answers the question, in the OSI model.

First, I suggest you read this on Wikipedia:

Device file system - Wikipedia, the free encyclopedia

The underlying operating systems provides system level calls that permit I/O operations. Without getting into the relationship between the devices, the kernel and the shell, I will simplify by saying, that there are underlying system calls that provide programs access to the disk and other devices, like network devices, their buffers and data structures.

So, depending on your platform (operating system), you need to look at your kernel level system calls that are accessible to the programmer. These APIs are often C programs in most computer systems today.

Another hint: Take a look at this book, for example, Beginning Linux Programming and learn about system calls.

I forgot to answer this one:

Tracing depends on the operating system. For example, take a look at strace for linux systems:

strace - Wikipedia, the free encyclopedia