How to find size of data trasnfered between 2 servers ?

Hi,

I have setup 2 Sun Solaris server at my home. I put them in network..
Network is ok. How can I find that how much data is transfered between these 2 servers and on specific port ?

Thanks
NeeleshG

The easy way...

Put a program between the server and it's port that counts the bytes...

The hard way...

Watch the network and count and measure the packets with the specific address:port tuples.

Thanks
NeeleshG

But Can anybody tell me which program I can use for this ?

Thanks
NeeleshG

netstat -I hme0

Thanks....
And how to do it on specific port say 7000

I think the man page states it as src:ipaddr.port

you can use tools like Argus , if you can compile the source on your machines.